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§
Sourcefn timer_ref(&self) -> TimerRef<Uuid, ActorRefState, ActorRefState>
fn timer_ref(&self) -> TimerRef<Uuid, ActorRefState, ActorRefState>
Returns the timer reference for associated with this factory