Struct netlink_packet_route::rtnl::nlas::NlaBuffer[][src]

pub struct NlaBuffer<T> where
    T: AsRef<[u8]>, 
{ /* fields omitted */ }

Implementations

Consume the buffer, returning the underlying buffer.

Return a reference to the underlying buffer

Return a mutable reference to the underlying buffer

Return the type field

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 type field

Set the length field

Return the value field

Return the value field

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

Deserialize the current type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. 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.