pub struct UnboundedReceiver<T> { /* private fields */ }
Expand description
An owning handle for receiving elements through a split unbounded
UnboundedChannel
.
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 an element through the channel.
§Errors
Fails, if the channel is empty or disconnected.
Trait Implementations§
Source§impl<T> Debug for UnboundedReceiver<T>
impl<T> Debug for UnboundedReceiver<T>
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