pub struct Writer<T> { /* private fields */ }Available on crate feature
nonblocking only.Expand description
Writer for a non-blocking circular buffer with items of type T.
Implementations§
Source§impl<T> Writer<T>
impl<T> Writer<T>
Sourcepub fn add_reader(&self) -> Reader<T>
pub fn add_reader(&self) -> Reader<T>
Add a reader to the buffer.
All readers can block the buffer, i.e., the writer will only overwrite data, if data was consumeed by all readers.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Writer<T>
impl<T> !UnwindSafe for Writer<T>
impl<T> Freeze for Writer<T>
impl<T> Send for Writer<T>
impl<T> Sync for Writer<T>
impl<T> Unpin for Writer<T>
impl<T> UnsafeUnpin for Writer<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