pub struct Consumer<T> { /* private fields */ }Expand description
The consumer endpoint of an MPSC queue.
This endpoint cannot be cloned - only one consumer thread is allowed.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Consumer<T>
impl<T> !RefUnwindSafe for Consumer<T>
impl<T> Sync for Consumer<T>where
T: Send,
impl<T> Unpin for Consumer<T>
impl<T> !UnwindSafe for Consumer<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