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

Producer view into the ring buffer.

Trait Implementations

Stores the given slice of data into the ring buffer. Returns the number of written elements or an error. Read more

Works analog to write but blocks until there are free slots in the ring buffer. The number of actual blocks written is returned in the Option value. Read more

Works analog to write_blocking but eventually returns if the specified timeout is reached. The number of actual blocks written is returned in the Ok(Option) value. 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.