Struct tonari_actor::timed::Timed [−][src]
pub struct Timed<A: Actor> { /* fields omitted */ }
Expand description
A wrapper around actors to add ability to receive delayed and recurring messages. See module documentation for a complete recipe.
Implementations
Trait Implementations
What kind of context this actor accepts. Usually Context<Self::Message>
.
type Message = TimedMessage<M>
type Message = TimedMessage<M>
The expected type of a message to be received.
The primary function of this trait, allowing an actor to handle incoming messages of a certain type.
Determine priority of a message
before it is sent to this actor.
Default implementation returns Priority::Normal
. Read more
An optional callback when the Actor has been started.
An optional callback when the Actor has been stopped.