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

The sender half of a oneshot channel. Can transmit a single message with the postage::Sink trait.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Attempts to accept the message, without blocking. Read more

Attempts to send a message into the sink. Read more

Attempts to send a message over the sink, without blocking. Read more

Sends a message over the channel, blocking the current thread until the message is sent. Read more

Chains two sink implementations. Messages will be transmitted to the argument until it rejects a message. Then messages will be transmitted to self. Read more

Filters messages, forwarding them to the sink if the filter returns true

Logs messages that are accepted by the sink 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.