Struct virtio_drivers::device::net::TxBuffer
source · 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.
Auto Trait Implementations§
impl Freeze for TxBuffer
impl RefUnwindSafe for TxBuffer
impl Send for TxBuffer
impl Sync for TxBuffer
impl Unpin for TxBuffer
impl UnwindSafe for TxBuffer
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