pub struct Channel<M> { /* private fields */ }
Expand description

Contains all data that should be shared between Addresses, Inboxes and the Child. This is wrapped in an Arc to allow sharing between them.

Implementations

This will attempt to receive a message from the Inbox. If there is no message, this will return None.

Wait until there is a message in the Inbox.

Trait Implementations

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.