pub struct TripleBuffer<T: Send> { /* private fields */ }
Expand description

A triple buffer, useful for nonblocking and thread-safe data sharing

A triple buffer is a single-producer single-consumer nonblocking communication channel which behaves like a shared variable: the producer submits regular updates, and the consumer accesses the latest available value whenever it feels like it.

Implementations

Construct a triple buffer with a certain initial value

Extract input and output of the triple buffer

Trait Implementations

Formats the value using the given formatter. Read more

Construct a triple buffer with a default-constructed value

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.