#[repr(C, align(128))]pub struct Channel<T, const N: usize> { /* private fields */ }
Expand description
Inner type shared by the producer and consumer. Supports zero copy deserialization. This type is shared by both the headless/lossless channel so that a user can choose to toggle backpressure when restarting a system.
Implementations§
Trait Implementations§
impl<T: AnyBitPattern, const N: usize> Sync for Channel<T, N>
We use AnyBitPattern
instead of Pod
as it’s a superset of Pod
Auto Trait Implementations§
impl<T, const N: usize> !Freeze for Channel<T, N>
impl<T, const N: usize> RefUnwindSafe for Channel<T, N>where
T: RefUnwindSafe,
impl<T, const N: usize> Send for Channel<T, N>where
T: Send,
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