pub struct Mbuf { /* private fields */ }
Expand description
A packet buffer.
This is a wrapper around a DPDK message buffer that represents a single Ethernet frame.
Returns the length of the data in the Mbuf.
Returns the contents of the Mbuf as a byte slice.
Returns a byte slice of data with length count at offset.
Errors if offset
is greater than or equal to the buffer length or count
exceeds the size
of the data stored at offset
.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
Executes the destructor for this type.
Read more
Reference to the underlying packet buffer.
Offset from the beginning of the header to the start of the payload.
Offset from the beginning of the packet buffer to the start of the payload.
Next level IANA protocol number.
Parses a Packet
from the outer encapsulating Packet
’s payload.
Parses the Packet
’s payload as a new Packet
of type T
.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.