pub enum PythonTimeEventCallbackArg {
TimeEvent,
LegacyCapsule,
}Expand description
Python time event callback argument mode.
Variants§
TimeEvent
Callbacks receive the PyO3 TimeEvent object.
LegacyCapsule
Legacy Cython callbacks receive a PyCapsule containing the Rust event.
Trait Implementations§
Source§impl Clone for PythonTimeEventCallbackArg
impl Clone for PythonTimeEventCallbackArg
Source§fn clone(&self) -> PythonTimeEventCallbackArg
fn clone(&self) -> PythonTimeEventCallbackArg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PythonTimeEventCallbackArg
Source§impl Debug for PythonTimeEventCallbackArg
impl Debug for PythonTimeEventCallbackArg
impl Eq for PythonTimeEventCallbackArg
Source§impl PartialEq for PythonTimeEventCallbackArg
impl PartialEq for PythonTimeEventCallbackArg
Source§fn eq(&self, other: &PythonTimeEventCallbackArg) -> bool
fn eq(&self, other: &PythonTimeEventCallbackArg) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PythonTimeEventCallbackArg
Auto Trait Implementations§
impl Freeze for PythonTimeEventCallbackArg
impl RefUnwindSafe for PythonTimeEventCallbackArg
impl Send for PythonTimeEventCallbackArg
impl Sync for PythonTimeEventCallbackArg
impl Unpin for PythonTimeEventCallbackArg
impl UnsafeUnpin for PythonTimeEventCallbackArg
impl UnwindSafe for PythonTimeEventCallbackArg
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more