Skip to main content

TimerEntry

Type Alias TimerEntry 

Source
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

§timeout: Duration

The length of the timeout

§state: ActorRefState

The information to store along with the timer

§

Periodic

A recurring timer

Fields

§delay: Duration

The delay until the action is first invoked

§period: Duration

The time between action invocations

§state: ActorRefState

The information to store along with the timer