pub struct Consumer<'a, T> { /* private fields */ }
Expand description

Read handle to a single slot queue.

Implementations

Try reading a value from the queue.

Check if there is a value in the queue.

Trait Implementations

Safety: We gurarantee the safety using an AtomicBool to gate the read of the UnsafeCell.

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.