pub struct UnboundedReceiver<T> { /* private fields */ }
Expand description
The receiving half of an unbounded MPSC channel
Implementations§
Source§impl<T> UnboundedReceiver<T>
impl<T> UnboundedReceiver<T>
Sourcepub fn try_recv(&mut self) -> Result<T, TryRecvError>
pub fn try_recv(&mut self) -> Result<T, TryRecvError>
Attempts to receive a value without blocking
Sourcepub fn id(&self) -> usize
pub fn id(&self) -> usize
Returns a unique identifier for this channel based on the shared pointer address
Sourcepub fn sender_strong_count(&self) -> usize
pub fn sender_strong_count(&self) -> usize
Returns the number of UnboundedSender
handles.
Sourcepub fn sender_weak_count(&self) -> usize
pub fn sender_weak_count(&self) -> usize
Returns the number of WeakUnboundedSender
handles.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for UnboundedReceiver<T>
impl<T> RefUnwindSafe for UnboundedReceiver<T>
impl<T> Send for UnboundedReceiver<T>where
T: Send,
impl<T> Sync for UnboundedReceiver<T>where
T: Send,
impl<T> Unpin for UnboundedReceiver<T>
impl<T> UnwindSafe for UnboundedReceiver<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