pub struct ControlSender<C> { /* private fields */ }Expand description
Cloneable handle to the control lane. send never blocks.
Implementations§
Source§impl<C> ControlSender<C>
impl<C> ControlSender<C>
Sourcepub fn send(&self, item: C) -> Result<(), ControlClosed<C>>
pub fn send(&self, item: C) -> Result<(), ControlClosed<C>>
Enqueue a control signal. Never blocks (the lane is unbounded).
§Errors
Returns ControlClosed carrying item if the consumer is gone.
Trait Implementations§
Source§impl<C> Clone for ControlSender<C>
impl<C> Clone for ControlSender<C>
Auto Trait Implementations§
impl<C> Freeze for ControlSender<C>
impl<C> RefUnwindSafe for ControlSender<C>
impl<C> Send for ControlSender<C>where
C: Send,
impl<C> Sync for ControlSender<C>where
C: Send,
impl<C> Unpin for ControlSender<C>
impl<C> UnsafeUnpin for ControlSender<C>
impl<C> UnwindSafe for ControlSender<C>
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