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

Handle to connect a Receiver to a Sender

A ReceiverConnector is either obtained when calling new_receiver or by calling ReceiverConnector::new.

Connecting a Receiver to a Sender is done by passing a SenderConnector reference to ReceiverConnector::connect. The SenderConnector is obtained when calling new_sender.

Implementations

Create a new ReceiverConnector without associated Receivers

Connect associated Receivers with a Sender

Disconnect associated Receivers from Sender if connected

Obtain an associated Receiver

Trait Implementations

Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
👎Deprecated since 0.2.0: method has been renamed to feed_from
Connect Consumer to Producer
👎Deprecated since 0.2.0: method has been renamed to feed_from_none
Disconnect Consumer from any connected Producer if connected
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.