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

Write handle to a single slot queue.

Implementations

Write a value into the queue. If there is a value already in the queue this will return the value given to this method.

Check if there is a value in the queue.

Trait Implementations

Safety: We gurarantee the safety using an AtomicBool to gate the write 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.