Struct async_priority_channel::Sender [−][src]
pub struct Sender<I, P> where
P: Ord, { /* fields omitted */ }Expand description
Send side of the channel. Can be cloned.
Implementations
Attempts to send a message into the channel.
If the channel is full or closed, this method returns an error.
Attempts to send multiple messages into the channel.
If the channel is closed, this method returns an error.
If the channel is full or nearly full, this method inserts as many messages as it can into the channel and then returns an error containing the remaining unsent messages.
Sends a message into the channel.
If the channel is full, this method waits until there is space for a message.
If the channel is closed, this method returns an error.
Send multiple messages into the channel
If the channel is full, this method waits until there is space.
If the channel is closed, this method returns an error.
Closes the channel and notifies all blocked operations.
Returns true if this call has closed the channel and it was not closed already.
Returns the number of receivers for the channel.
Returns the number of senders for the channel.
Trait Implementations
Auto Trait Implementations
impl<I, P> RefUnwindSafe for Sender<I, P>
impl<I, P> UnwindSafe for Sender<I, P>
Blanket Implementations
Mutably borrows from an owned value. Read more