Struct triple_buffer::TripleBuffer[][src]

pub struct TripleBuffer<T: Send> { /* fields omitted */ }
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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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.