Struct tokio::prelude::stream::Sender

source ·
pub struct Sender<T, E> { /* private fields */ }
👎Deprecated since 0.1.4: use sync::mpsc::channel instead
Expand description

The transmission end of a channel which is used to send values.

This is created by the channel method in the stream module.

Implementations§

👎Deprecated since 0.1.4: use sync::mpsc::channel instead

Sends a new value along this channel to the receiver.

This method consumes the sender and returns a future which will resolve to the sender again when the value sent has been consumed.

Trait Implementations§

Formats the value using the given formatter. 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.