Struct nolock::queues::spsc::bounded::AsyncBoundedReceiver[][src]

pub struct AsyncBoundedReceiver<T> { /* fields omitted */ }
Expand description

An async variant of the BoundedReceiver that allows your to efficiently use this Queue in async Contexts as well.

Created using the async_queue method

Implementations

Checks if the Queue has been closed by the Producer

Note

Even when this indicates that the Queue is closed, there might still be Items left in the Queue that the Consumer should dequeue first to make sure that no data is lost

The async variant of the blocking dequeue operation on the Non-Async version of the Queue

Attempts to dequeue a single Item from the Queue.

This behaves just like the non-async try_dequeue operation

Checks if the Queue is currently Empty

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.