pub struct UnboundedReceiver<T> { /* private fields */ }Expand description
Unbounded MPSC receiver
Implementations§
Source§impl<T> UnboundedReceiver<T>
impl<T> UnboundedReceiver<T>
pub fn is_closed(&self) -> bool
pub fn close(&self) -> bool
pub fn producer_count(&self) -> usize
pub fn create_sender(&self) -> Result<UnboundedSender<T>, PushError<()>>
Sourcepub fn try_pop_with_waker(&mut self) -> Result<(T, &DiatomicWaker), PopError>
pub fn try_pop_with_waker(&mut self) -> Result<(T, &DiatomicWaker), PopError>
Try to pop a single value and return the waker
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for UnboundedReceiver<T>
impl<T> RefUnwindSafe for UnboundedReceiver<T>
impl<T> Send for UnboundedReceiver<T>
impl<T> Sync for UnboundedReceiver<T>
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