pub struct Receiver<T> { /* private fields */ }Expand description
Receiver end to receive message
Implements Future
Implementations§
Source§impl<T> Receiver<T>
impl<T> Receiver<T>
Sourcepub fn is_consumed(&self) -> bool
pub fn is_consumed(&self) -> bool
Returns whether receiver has been ‘consumed’
Sourcepub fn try_recv(&self) -> Result<Option<T>, JoinError>
pub fn try_recv(&self) -> Result<Option<T>, JoinError>
Checks if message is received, returning it, if possible
Otherwise returns None
Trait Implementations§
impl<T: Send> Send for Receiver<T>
impl<T> Unpin for Receiver<T>
Auto Trait Implementations§
impl<T> Freeze for Receiver<T>
impl<T> !RefUnwindSafe for Receiver<T>
impl<T> !Sync for Receiver<T>
impl<T> !UnwindSafe for Receiver<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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more