Skip to main content

TimerEntryWithDelay

Trait TimerEntryWithDelay 

pub trait TimerEntryWithDelay: Debug {
    // Required method
    fn delay(&self) -> Duration;
}
Expand description

A trait for timer entries that store their delay along the with the state

Required Methods§

fn delay(&self) -> Duration

Returns the time until the timeout is supposed to be triggered

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

§

impl<I> TimerEntryWithDelay for IdOnlyTimerEntry<I>
where I: Hash + Clone + Eq + Debug,