pub struct Queue<T> { /* private fields */ }
Expand description
The multi-producer single-consumer structure. This is not cloneable, but it
may be safely shared so long as it is guaranteed that there is only one
popper at a time (many pushers are allowed).
Creates a new queue that is safe to share among multiple producers and
one consumer.
Pops some data from this queue.
Returns the “default value” for a type.
Read more
Executes the destructor for this type.
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.