Struct async_unsync::unbounded::UnboundedReceiver
source · 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> !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