pub struct State<const N_RX: usize, const N_TX: usize> { /* private fields */ }Expand description
Channel state.
Holds the inbound and outbound packet queues, N_RX and N_TX packets long.
The queues hold [PacketBuf]s, which come from the global packet pool, so their
size here is a handful of bytes per slot, not a whole packet each.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<const N_RX: usize, const N_TX: usize> !Freeze for State<N_RX, N_TX>
impl<const N_RX: usize, const N_TX: usize> !RefUnwindSafe for State<N_RX, N_TX>
impl<const N_RX: usize, const N_TX: usize> !Sync for State<N_RX, N_TX>
impl<const N_RX: usize, const N_TX: usize> Send for State<N_RX, N_TX>
impl<const N_RX: usize, const N_TX: usize> Unpin for State<N_RX, N_TX>
impl<const N_RX: usize, const N_TX: usize> UnsafeUnpin for State<N_RX, N_TX>where
Channel<NoopRawMutex, PacketBuf, N_RX>: UnsafeUnpin,
Channel<NoopRawMutex, PacketBuf, N_TX>: UnsafeUnpin,
impl<const N_RX: usize, const N_TX: usize> UnwindSafe for State<N_RX, N_TX>where
Channel<NoopRawMutex, PacketBuf, N_RX>: UnwindSafe,
Channel<NoopRawMutex, PacketBuf, N_TX>: 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