#[repr(C)]pub struct TimeEventHandler {
pub event: TimeEvent,
pub callback: TimeEventCallback,
}Expand description
Pairs a TimeEvent with its callback for ordered dispatch.
Natural ordering is ascending by ts_event, then name, ts_init, and event_id.
Fields§
§event: TimeEventThe time event.
callback: TimeEventCallbackThe callable handler for the event.
Implementations§
Source§impl TimeEventHandler
impl TimeEventHandler
Sourcepub const fn new(event: TimeEvent, callback: TimeEventCallback) -> Self
pub const fn new(event: TimeEvent, callback: TimeEventCallback) -> Self
Creates a handler for event and callback.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TimeEventHandler
impl Debug for TimeEventHandler
impl Eq for TimeEventHandler
Source§impl Ord for TimeEventHandler
impl Ord for TimeEventHandler
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TimeEventHandler
impl PartialEq for TimeEventHandler
Source§impl PartialOrd for TimeEventHandler
impl PartialOrd for TimeEventHandler
Auto Trait Implementations§
impl !RefUnwindSafe for TimeEventHandler
impl !Send for TimeEventHandler
impl !Sync for TimeEventHandler
impl !UnwindSafe for TimeEventHandler
impl Freeze for TimeEventHandler
impl Unpin for TimeEventHandler
impl UnsafeUnpin 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
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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
§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