pub struct Consumer<'a, T> { /* private fields */ }
Expand description
Read handle to a single slot queue.
Implementations§
Trait Implementations§
impl<'a, T> Send for Consumer<'a, T>
Safety: We gurarantee the safety using an AtomicBool
to gate the read of the UnsafeCell
.
Auto Trait Implementations§
impl<'a, T> Freeze for Consumer<'a, T>
impl<'a, T> !RefUnwindSafe for Consumer<'a, T>
impl<'a, T> !Sync for Consumer<'a, T>
impl<'a, T> Unpin for Consumer<'a, T>
impl<'a, T> !UnwindSafe for Consumer<'a, 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