#[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: TimeEventThe time event.
callback_ptr: *mut c_charThe callable raw pointer.
Trait Implementations§
Source§impl Clone for TimeEventHandler
impl Clone for TimeEventHandler
Source§impl Debug for TimeEventHandler
impl Debug for TimeEventHandler
Source§impl Drop for TimeEventHandler
Available on crate feature python only.
impl Drop for TimeEventHandler
Available on crate feature
python only.Source§impl From<TimeEventHandlerV2> for TimeEventHandler
Available on crate feature python only.
impl From<TimeEventHandlerV2> for TimeEventHandler
Available on crate feature
python only.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more