pub struct SPSCConsumer<T, B: Buffer<T>> { /* private fields */ }
Expand description

Consumer end of the queue. Implements the trait Consumer<T>.

Trait Implementations

Remove value from the end of the queue. This method will block if the queue is currently empty. Read more

Attempt to remove a value from the end of the queue. If the value was removed successfully, Some(T) will be returned. If unsuccessful, None will be returned. An unsuccessful pop indicates that the queue was empty. Read more

Executes the destructor for this type. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.