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. With a the ethernet MTU of 1514 this takes up N_RX + NTX * 1514
bytes. While setting these both to 1 is the minimum this might
hurt performance as a packet can not be received while processing another.
§Warning
On devices with a small amount of ram (think ~64k) watch out with the size of there parameters. They will quickly use too much RAM.
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> !Send 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> Unpin for State<N_RX, N_TX>
impl<const N_RX: usize, const N_TX: usize> !UnwindSafe for State<N_RX, N_TX>
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