pub struct PacketBuffers<const TX: usize = 1024, const RX: usize = 1024> {
pub tx_buf: [u8; TX],
pub rx_buf: [u8; RX],
}
Expand description
Static storage for generically sized input and output packet buffers
Fields§
§tx_buf: [u8; TX]
the transmit buffer
rx_buf: [u8; RX]
thereceive buffer
Implementations§
Auto Trait Implementations§
impl<const TX: usize, const RX: usize> Freeze for PacketBuffers<TX, RX>
impl<const TX: usize, const RX: usize> RefUnwindSafe for PacketBuffers<TX, RX>
impl<const TX: usize, const RX: usize> Send for PacketBuffers<TX, RX>
impl<const TX: usize, const RX: usize> Sync for PacketBuffers<TX, RX>
impl<const TX: usize, const RX: usize> Unpin for PacketBuffers<TX, RX>
impl<const TX: usize, const RX: usize> UnwindSafe for PacketBuffers<TX, RX>
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