pub type TimerEntry = TimerEntry<Uuid, ActorRefState, ActorRefState>;Expand description
A concrete entry for an outstanding timeout
Aliased Type§
pub enum TimerEntry {
OneShot {
timeout: Duration,
state: ActorRefState,
},
Periodic {
delay: Duration,
period: Duration,
state: ActorRefState,
},
}Variants§
OneShot
A one-off timer
Fields
§
state: ActorRefStateThe information to store along with the timer
Periodic
A recurring timer