Struct crossbeam_channel::flavors::array::Receiver
source · pub(crate) struct Receiver<'a, T>(&'a Channel<T>);
Expand description
Receiver handle to a channel.
Tuple Fields§
§0: &'a Channel<T>
Trait Implementations§
source§impl<T> SelectHandle for Receiver<'_, T>
impl<T> SelectHandle for Receiver<'_, 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 Receiver<'a, T>
impl<'a, T> !RefUnwindSafe for Receiver<'a, T>
impl<'a, T> !Send for Receiver<'a, T>
impl<'a, T> !Sync for Receiver<'a, T>
impl<'a, T> Unpin for Receiver<'a, T>
impl<'a, T> !UnwindSafe for Receiver<'a, 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