pub struct SpscReceiver<T, const CAP: usize> { /* private fields */ }Expand description
Consumer handle: the only way to try_pop from a channel ring.
Implementations§
Auto Trait Implementations§
impl<T, const CAP: usize> !RefUnwindSafe for SpscReceiver<T, CAP>
impl<T, const CAP: usize> !UnwindSafe for SpscReceiver<T, CAP>
impl<T, const CAP: usize> Forget for SpscReceiver<T, CAP>
impl<T, const CAP: usize> Freeze for SpscReceiver<T, CAP>
impl<T, const CAP: usize> Move for SpscReceiver<T, CAP>
impl<T, const CAP: usize> Send for SpscReceiver<T, CAP>
impl<T, const CAP: usize> Sync for SpscReceiver<T, CAP>
impl<T, const CAP: usize> Unpin for SpscReceiver<T, CAP>
impl<T, const CAP: usize> UnsafeUnpin for SpscReceiver<T, CAP>where
*const ArcInner<SpscRing<T, CAP>> is !null: UnsafeUnpin,
PhantomData<ArcInner<SpscRing<T, CAP>>>: UnsafeUnpin,
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