[−][src]Struct eventum::TimerHandler
TimerHandler trait.
Implementations
impl TimerHandler
[src]
pub fn new(d: Duration, handler: Arc<dyn EventHandler>) -> TimerHandler
[src]
Constructor.
pub fn expiration(&self) -> Instant
[src]
Get expiration time.
Trait Implementations
impl Eq for TimerHandler
[src]
impl Ord for TimerHandler
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TimerHandler> for TimerHandler
[src]
impl PartialOrd<TimerHandler> for TimerHandler
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TimerHandler
impl Send for TimerHandler
impl Sync for TimerHandler
impl Unpin for TimerHandler
impl !UnwindSafe for TimerHandler
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,