#[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 !Send for TimeEventHandler_API
impl !Sync for TimeEventHandler_API
impl Freeze for TimeEventHandler_API
impl RefUnwindSafe for TimeEventHandler_API
impl Unpin for TimeEventHandler_API
impl UnsafeUnpin 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