pub struct Sender<T>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<T: Send + 'static> SelectableSender for Sender<T>
impl<T: Send + 'static> SelectableSender for Sender<T>
Source§fn is_ready(&self) -> bool
fn is_ready(&self) -> bool
Ready when the buffer is not full OR all receivers are gone (disconnect).
Source§fn register_select(&self, case_id: usize, selected: Arc<AtomicUsize>)
fn register_select(&self, case_id: usize, selected: Arc<AtomicUsize>)
Register a send-side waiter for the select park phase.
Source§fn abort_select(&self, selected: &Arc<AtomicUsize>)
fn abort_select(&self, selected: &Arc<AtomicUsize>)
Remove the previously registered waiter (losing arm cleanup).
Auto Trait Implementations§
impl<T> Freeze for Sender<T>
impl<T> !RefUnwindSafe for Sender<T>
impl<T> Send for Sender<T>where
T: Send,
impl<T> Sync for Sender<T>where
T: Send,
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