pub struct Sender<T> { /* private fields */ }
Expand description
The sending side of the channel.
Sender
is Send
, Sync
, and Clone
able.
When Sender
is dropped, any locally buffered messages are flushed to the receiver.
Note that this might block if waiting on the shared lock.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Sender<T>
impl<T> Send for Sender<T>where
T: Send,
impl<T> Sync for Sender<T>
impl<T> Unpin for Sender<T>where
T: Unpin,
impl<T> !UnwindSafe for Sender<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more