pub struct TxBuffer(/* private fields */);
Expand description
A buffer used for transmitting.
Implementations§
Source§impl TxBuffer
impl TxBuffer
Sourcepub fn packet_len(&self) -> usize
pub fn packet_len(&self) -> usize
Returns the network packet length.
Sourcepub fn packet_mut(&mut self) -> &mut [u8]
pub fn packet_mut(&mut self) -> &mut [u8]
Returns the network packet as a mutable slice.