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.