pub struct Sender<T>(/* private fields */);Expand description
The sending half of a channel. Cheap to clone.
Implementations§
Source§impl<T: Send + 'static> Sender<T>
impl<T: Send + 'static> Sender<T>
Sourcepub fn send(&self, val: T)
pub fn send(&self, val: T)
Send val, blocking until a receiver is ready or buffer space opens.
§Panics
Panics if the channel has been closed.
Trait Implementations§
impl<T: Send> Send for Sender<T>
impl<T: Send> Sync for Sender<T>
Auto Trait Implementations§
impl<T> Freeze for Sender<T>
impl<T> !RefUnwindSafe for Sender<T>
impl<T> Unpin for Sender<T>
impl<T> UnsafeUnpin for Sender<T>
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