pub struct AsyncUnboundedReceiver<T> { /* private fields */ }
Expand description
This is the async Variant of the UnboundedReceiver
.
Created using async_queue
Implementations
sourceimpl<T> AsyncUnboundedReceiver<T>
impl<T> AsyncUnboundedReceiver<T>
sourcepub fn dequeue(&mut self) -> DequeueFuture<'_, T>ⓘNotable traits for DequeueFuture<'queue, T>impl<'queue, T> Future for DequeueFuture<'queue, T> type Output = Result<T, DequeueError>;
pub fn dequeue(&mut self) -> DequeueFuture<'_, T>ⓘNotable traits for DequeueFuture<'queue, T>impl<'queue, T> Future for DequeueFuture<'queue, T> type Output = Result<T, DequeueError>;
Dequeues the next Item from the Queue
sourcepub fn try_dequeue(&mut self) -> Result<T, DequeueError>
pub fn try_dequeue(&mut self) -> Result<T, DequeueError>
This attempts to dequeue the next Item from the Queue.
This behaves just like the normal
try_dequeue
-Operation
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for AsyncUnboundedReceiver<T>
impl<T> Send for AsyncUnboundedReceiver<T>
impl<T> Sync for AsyncUnboundedReceiver<T>
impl<T> Unpin for AsyncUnboundedReceiver<T>
impl<T> !UnwindSafe for AsyncUnboundedReceiver<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more