pub struct Receiver<T> { /* private fields */ }
Expand description

The receiver half of a oneshot channel. Can recieve a single message (or none if the sender drops) with the postage::Stream trait.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Attempts to retrieve an item from the stream, without blocking. Read more

Retrieves a message from the stream. Read more

Attempts to retrive a message from the stream, without blocking. Read more

Retrieves a message from the stream, blocking the current thread until one is available. Read more

Transforms the stream with a map function.

Filters messages returned by the stream, ignoring messages where filter returns false.

Merges two streams, returning values from both at once, until both are closed.

Chains two streams, returning values from self until it is closed, and then returning values from other.

Finds a message matching a condition. When the condition is matched, a single value will be returned. Then the stream will be closed. Read more

Logs messages that are produced by the stream using the Debug trait, at the provided log level. Read more

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.