pub struct Channel<T, const N: usize> { /* private fields */ }
Expand description
An MPSC channel for use in no-alloc systems. N
sets the size of the queue.
This channel uses critical sections, however there are extremely small and all memcpy
operations of T
are done without critical sections.
Implementations§
Trait Implementations§
impl<T, const N: usize> Send for Channel<T, N>
impl<T, const N: usize> Sync for Channel<T, N>
Auto Trait Implementations§
impl<T, const N: usize> !Freeze for Channel<T, N>
impl<T, const N: usize> !RefUnwindSafe for Channel<T, N>
impl<T, const N: usize> Unpin for Channel<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for Channel<T, N>where
T: UnwindSafe,
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