pub struct SPMCBufferOutput<T: Send + Sync> { /* private fields */ }
Expand description
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.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SPMCBufferOutput<T>
impl<T> !RefUnwindSafe for SPMCBufferOutput<T>
impl<T> Send for SPMCBufferOutput<T>
impl<T> Sync for SPMCBufferOutput<T>
impl<T> Unpin for SPMCBufferOutput<T>
impl<T> !UnwindSafe for SPMCBufferOutput<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more