Skip to main content

TimerRefFactory

Trait TimerRefFactory 

Source
pub trait TimerRefFactory {
    // Required method
    fn timer_ref(&self) -> TimerRef<Uuid, ActorRefState, ActorRefState>;

    // Provided method
    fn now(&self) -> Instant { ... }
}
Expand description

A factory trait to produce instances of TimerRef

Required Methods§

Source

fn timer_ref(&self) -> TimerRef<Uuid, ActorRefState, ActorRefState>

Returns the timer reference for associated with this factory

Provided Methods§

Source

fn now(&self) -> Instant

Returns the current time according to the underlying timer implementation.

Implementors§