Struct channellib::Receiver
source · pub struct Receiver<T>(/* private fields */);
Implementations§
source§impl<T> Receiver<T>
impl<T> Receiver<T>
pub fn into_inner(self) -> Receiver<T>
pub fn recv(&self) -> Result<T, RecvError>
pub fn try_recv(&self) -> Result<T, TryRecvError>
pub fn recv_timeout(&self, dur: Duration) -> Result<T, RecvTimeoutError>
Auto Trait Implementations§
impl<T> Freeze for Receiver<T>
impl<T> RefUnwindSafe for Receiver<T>
impl<T> Send for Receiver<T>where
T: Send,
impl<T> Sync for Receiver<T>where
T: Send,
impl<T> Unpin for Receiver<T>where
T: Unpin,
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