pub struct Consumer<'a, T: Copy, const N: usize> { /* private fields */ }Expand description
Read handle for an EventBuf.
Dropping the consumer releases the slot so a new one can be created.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T, const N: usize> Freeze for Consumer<'a, T, N>
impl<'a, T, const N: usize> !RefUnwindSafe for Consumer<'a, T, N>
impl<'a, T, const N: usize> Send for Consumer<'a, T, N>where
T: Send,
impl<'a, T, const N: usize> !Sync for Consumer<'a, T, N>
impl<'a, T, const N: usize> Unpin for Consumer<'a, T, N>
impl<'a, T, const N: usize> !UnwindSafe for Consumer<'a, T, N>
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