pub struct NonBlockingReceiver<T> { /* private fields */ }
Expand description
A receiver that is guaranteed to never block when receiving messages.
Implementations§
Source§impl<T> NonBlockingReceiver<T>
impl<T> NonBlockingReceiver<T>
Sourcepub fn try_recv(&mut self) -> RecvResult<T>
pub fn try_recv(&mut self) -> RecvResult<T>
Tries to send a message to the receiving channel without ever blocking, even briefly.
§Result
This method fails if the receiving queue is full, or if the receiver has been dropped.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for NonBlockingReceiver<T>
impl<T> RefUnwindSafe for NonBlockingReceiver<T>where
T: RefUnwindSafe,
impl<T> Send for NonBlockingReceiver<T>where
T: Send,
impl<T> Sync for NonBlockingReceiver<T>
impl<T> Unpin for NonBlockingReceiver<T>where
T: Unpin,
impl<T> UnwindSafe for NonBlockingReceiver<T>where
T: UnwindSafe + 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