pub struct Deadline<'a, C: SimpleClock> { /* fields omitted */ }
Expand description
Provides an easy way to specify operation deadline
This timer is usually used to limit polling operation by a certain period of time.
pub fn new(clock: &'a C, timeout: u64) -> Self
Creates a new deadline timer instance backed by the specified clock implementation
Returns error if the deadline has been reached.
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.