pub struct Producer<T> { /* private fields */ }
Expand description
A handle for writing values to the FIFO.
Implementations§
Source§impl<T> Producer<T>
impl<T> Producer<T>
Sourcepub fn push_blocking(&self, value: T)
pub fn push_blocking(&self, value: T)
Push a value into the FIFO.
If the FIFO is full, this method will block until there is space available.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Producer<T>
impl<T> RefUnwindSafe for Producer<T>where
T: RefUnwindSafe,
impl<T> !Sync for Producer<T>
impl<T> Unpin for Producer<T>
impl<T> UnwindSafe for Producer<T>where
T: RefUnwindSafe,
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