Struct tonari_actor::Recipient[][src]

pub struct Recipient<M> { /* fields omitted */ }
Expand description

Similar to Addr, but rather than pointing to a specific actor, it is typed for any actor that handles a given message-response type.

Implementations

Send a message to an actor. Returns SendError if the channel is full; does not block. See SendResultExt trait for convenient handling of errors.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Send a message now. Convenience to wrap message in TimedMessage::Instant.

Send a message to be delivered later at a certain instant.

Schedule sending of message at fire_at plus at regular intervals from that point on.

Send a message to be delivered later after some time from now.

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.