Struct netlink_packet_route::rtnl::nlas::NlaBuffer [−][src]
Implementations
Consume the buffer, returning the underlying buffer.
Return the length
field. The length
field corresponds to the length of the nla
header (type and length fields, and the value field). However, it does not account for the
potential padding that follows the value field.
Return the length of the value
field
Panic
This panics if the length field value is less than the attribut header size.
Set the length
field
Trait Implementations
Deserialize the current type.
fn parse_with_param(
buf: &NlaBuffer<&'a T>,
interface_family: u16
) -> Result<Self, DecodeError>
fn parse_with_param(
buf: &NlaBuffer<&'a T>,
interface_family: u16
) -> Result<Self, DecodeError>
Deserialize the current type.
Auto Trait Implementations
impl<T> RefUnwindSafe for NlaBuffer<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for NlaBuffer<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more