#[repr(C)]pub struct TimeEventHandler {
pub event: TimeEvent,
pub callback_ptr: *mut c_char,
}
Expand description
Legacy time event handler for Cython/FFI inter-operatbility
TODO: Remove once Cython is deprecated
TimeEventHandler
associates a TimeEvent
with a callback function that is triggered
when the event’s timestamp is reached.
Fields§
§event: TimeEvent
The time event.
callback_ptr: *mut c_char
The callable raw pointer.
Trait Implementations§
Source§impl Clone for TimeEventHandler
impl Clone for TimeEventHandler
Source§fn clone(&self) -> TimeEventHandler
fn clone(&self) -> TimeEventHandler
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TimeEventHandler
impl Debug for TimeEventHandler
Source§impl From<TimeEventHandlerV2> for TimeEventHandler
impl From<TimeEventHandlerV2> for TimeEventHandler
Source§fn from(value: TimeEventHandlerV2) -> Self
fn from(value: TimeEventHandlerV2) -> Self
§Panics
Panics if the provided TimeEventHandlerV2
contains a Rust callback,
since only Python callbacks are supported by the legacy TimeEventHandler
.
Auto Trait Implementations§
impl Freeze for TimeEventHandler
impl RefUnwindSafe for TimeEventHandler
impl !Send for TimeEventHandler
impl !Sync for TimeEventHandler
impl Unpin for TimeEventHandler
impl UnwindSafe for TimeEventHandler
Blanket Implementations§
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