[−][src]Enum hierarchical_hash_wheel_timer::TimerEntry
A concrete entry for an outstanding timeout
Variants
A one-off timer
Fields of OneShot
A recurring timer
Fields of Periodic
Methods
impl<I, O, P> TimerEntry<I, O, P> where
I: Hash + Clone + Eq,
O: OneshotState<Id = I>,
P: PeriodicState<Id = I>,
[src]
I: Hash + Clone + Eq,
O: OneshotState<Id = I>,
P: PeriodicState<Id = I>,
pub fn id(&self) -> &I
[src]
A reference to the id associated with this entry
Equals calling the id()
function on either state type.
pub fn delay(&self) -> &Duration
[src]
Returns the time until the timeout is supposed to be triggered
Trait Implementations
impl<I: Debug, O: Debug, P: Debug> Debug for TimerEntry<I, O, P> where
I: Hash + Clone + Eq,
O: OneshotState<Id = I>,
P: PeriodicState<Id = I>,
[src]
I: Hash + Clone + Eq,
O: OneshotState<Id = I>,
P: PeriodicState<Id = I>,
Auto Trait Implementations
impl<I, O, P> RefUnwindSafe for TimerEntry<I, O, P> where
O: RefUnwindSafe,
P: RefUnwindSafe,
O: RefUnwindSafe,
P: RefUnwindSafe,
impl<I, O, P> Send for TimerEntry<I, O, P> where
O: Send,
P: Send,
O: Send,
P: Send,
impl<I, O, P> Sync for TimerEntry<I, O, P> where
O: Sync,
P: Sync,
O: Sync,
P: Sync,
impl<I, O, P> Unpin for TimerEntry<I, O, P> where
O: Unpin,
P: Unpin,
O: Unpin,
P: Unpin,
impl<I, O, P> UnwindSafe for TimerEntry<I, O, P> where
O: UnwindSafe,
P: UnwindSafe,
O: UnwindSafe,
P: UnwindSafe,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,