pub struct State<const N_RX: usize, const N_TX: usize> { /* private fields */ }Expand description
Internal state for the embassy-net integration.
The two generic arguments N_RX and N_TX set the size of the receive and
send packet queue, in packets. The packets themselves come from the global
packet pool, sized by xarxa’s packet-buf-count-N feature, so these only
bound how many of them this driver can hold at a time. Setting both to 1 is
the minimum, but this might hurt performance as a packet can not be received
while processing another.
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
State<N_RX, N_TX>: UnsafeUnpin,
impl<const N_RX: usize, const N_TX: usize> UnwindSafe for State<N_RX, N_TX>where
State<N_RX, 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