Struct crossbeam_channel::flavors::zero::Sender
source · pub(crate) struct Sender<'a, T>(&'a Channel<T>);
Expand description
Sender handle to a channel.
Tuple Fields§
§0: &'a Channel<T>
Trait Implementations§
source§impl<T> SelectHandle for Sender<'_, T>
impl<T> SelectHandle for Sender<'_, T>
source§fn try_select(&self, token: &mut Token) -> bool
fn try_select(&self, token: &mut Token) -> bool
Attempts to select an operation and returns
true
on success.source§fn register(&self, oper: Operation, cx: &Context) -> bool
fn register(&self, oper: Operation, cx: &Context) -> bool
Registers an operation for execution and returns
true
if it is now ready.source§fn unregister(&self, oper: Operation)
fn unregister(&self, oper: Operation)
Unregisters an operation for execution.
source§fn accept(&self, token: &mut Token, cx: &Context) -> bool
fn accept(&self, token: &mut Token, cx: &Context) -> bool
Attempts to select an operation the thread got woken up for and returns
true
on success.Auto Trait Implementations§
impl<'a, T> Freeze for Sender<'a, T>
impl<'a, T> RefUnwindSafe for Sender<'a, T>where
T: RefUnwindSafe,
impl<'a, T> !Send for Sender<'a, T>
impl<'a, T> !Sync for Sender<'a, T>
impl<'a, T> Unpin for Sender<'a, T>
impl<'a, T> UnwindSafe for Sender<'a, T>where
T: RefUnwindSafe,
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