#[repr(C)]pub struct TimeEventHandler_API {
pub event: TimeEvent,
pub callback_ptr: *mut c_char,
}Expand description
FFI time event handler for Cython interoperability.
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.
Implementations§
Trait Implementations§
Source§impl Clone for TimeEventHandler_API
impl Clone for TimeEventHandler_API
Source§impl Debug for TimeEventHandler_API
impl Debug for TimeEventHandler_API
Source§impl Drop for TimeEventHandler_API
Available on crate feature python only.
impl Drop for TimeEventHandler_API
Available on crate feature
python only.Source§impl From<TimeEventHandler> for TimeEventHandler_API
Available on crate feature python only.
impl From<TimeEventHandler> for TimeEventHandler_API
Available on crate feature
python only.Source§fn from(value: TimeEventHandler) -> Self
fn from(value: TimeEventHandler) -> Self
§Panics
Panics if the provided TimeEventHandler contains a Rust callback,
since only Python callbacks are supported by TimeEventHandler_API.
Auto Trait Implementations§
impl Freeze for TimeEventHandler_API
impl RefUnwindSafe for TimeEventHandler_API
impl !Send for TimeEventHandler_API
impl !Sync for TimeEventHandler_API
impl Unpin for TimeEventHandler_API
impl UnwindSafe for TimeEventHandler_API
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,
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