pub struct SendChannel<T>(/* private fields */);Expand description
Represents the sending end of a rendez-vous channel.
Implementations§
Source§impl<T> SendChannel<T>
impl<T> SendChannel<T>
Sourcepub fn select(&self, value: T) -> impl '_ + Selectable
pub fn select(&self, value: T) -> impl '_ + Selectable
A Selectable event which resolves when value is sent on the
channel. Respects the atomicity and rendez-vous properties of the
operation; if the event occurs and is processed, then the value was
sent, and otherwise not.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SendChannel<T>
impl<T> !RefUnwindSafe for SendChannel<T>
impl<T> Send for SendChannel<T>where
T: Send,
impl<T> Sync for SendChannel<T>where
T: Send,
impl<T> Unpin for SendChannel<T>
impl<T> !UnwindSafe for SendChannel<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