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
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for TripleBuffer<T>
impl<T> Send for TripleBuffer<T>
impl<T> Sync for TripleBuffer<T>
impl<T> Unpin for TripleBuffer<T>
impl<T> !UnwindSafe for TripleBuffer<T>
Blanket Implementations
Mutably borrows from an owned value. Read more