Struct spmc_buffer::SPMCBufferOutput
[−]
[src]
pub struct SPMCBufferOutput<T: Clone + PartialEq + Send> { /* fields omitted */ }
Consumer interface to SPMC buffers
A consumer of data can use this struct to access the latest published update from the producer whenever he likes. Readout is nonblocking: a collision between the producer and a consumer will result cache contention induced slowdown, but deadlocks and scheduling-induced slowdowns cannot happen.
Methods
impl<T: Clone + PartialEq + Send> SPMCBufferOutput<T>
[src]
fn read(&mut self) -> &T
Access the latest value from the SPMC buffer
Trait Implementations
impl<T: Debug + Clone + PartialEq + Send> Debug for SPMCBufferOutput<T>
[src]
impl<T: Clone + PartialEq + Send> Clone for SPMCBufferOutput<T>
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more