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>.

The type to return on error in the handle method.

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.

The name of the Actor - used only for logging/debugging.

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.

An optional callback when a deadline has passed. Read more

Access wrapped actor.

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.