[][src]Trait hierarchical_hash_wheel_timer::OneshotState

pub trait OneshotState {
    type Id: Hash + Clone + Eq;
    fn id(&self) -> &Self::Id;
fn trigger(self); }

A trait for state that can be triggered once

Associated Types

type Id: Hash + Clone + Eq

The type of the unique id of the outstanding timeout

Loading content...

Required methods

fn id(&self) -> &Self::Id

A reference to the id associated with this state

fn trigger(self)

Trigger should be called by the timer implementation when the timeout has expired.

The method can be used for custom expiry actions, but it is strongly recommended to keep these quick, as long actions can delay the execution of later timers.

Loading content...

Implementors

impl<I> OneshotState for OneShotClosureState<I> where
    I: Hash + Clone + Eq
[src]

type Id = I

Loading content...