Struct rtnetlink::NlaBuffer[][src]

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

Methods

impl<T: AsRef<[u8]>> NlaBuffer<T>
[src]

Consume the buffer, returning 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.

impl<T: AsRef<[u8]> + AsMut<[u8]>> NlaBuffer<T>
[src]

Set the type field

Set the length field

impl<'buffer, T: AsRef<[u8]> + ?Sized> NlaBuffer<&'buffer T>
[src]

Return the value field

impl<'buffer, T: AsRef<[u8]> + AsMut<[u8]> + ?Sized> NlaBuffer<&'buffer mut T>
[src]

Return the value field

Trait Implementations

impl<'buffer, T: AsRef<[u8]> + ?Sized> Parseable<AddressNla> for NlaBuffer<&'buffer T>
[src]

Deserialize the current type.

impl<'buffer, T: AsRef<[u8]> + ?Sized> Parseable<LinkAfInetNla> for NlaBuffer<&'buffer T>
[src]

Deserialize the current type.

impl<'buffer, T: AsRef<[u8]> + ?Sized> Parseable<LinkAfInet6Nla> for NlaBuffer<&'buffer T>
[src]

Deserialize the current type.

impl<'buffer, T: AsRef<[u8]> + ?Sized> Parseable<LinkAfSpecNla> for NlaBuffer<&'buffer T>
[src]

Deserialize the current type.

impl<'buffer, T: AsRef<[u8]> + ?Sized> Parseable<Vec<LinkInfo>> for NlaBuffer<&'buffer T>
[src]

Deserialize the current type.

impl<'buffer, T: AsRef<[u8]> + ?Sized> Parseable<LinkInfoKind> for NlaBuffer<&'buffer T>
[src]

Deserialize the current type.

impl<'buffer, T: AsRef<[u8]> + ?Sized> Parseable<LinkInfoVlan> for NlaBuffer<&'buffer T>
[src]

Deserialize the current type.

impl<'buffer, T: AsRef<[u8]> + ?Sized> Parseable<LinkInfoBridge> for NlaBuffer<&'buffer T>
[src]

Deserialize the current type.

impl<'buffer, T: AsRef<[u8]> + ?Sized> Parseable<LinkNla> for NlaBuffer<&'buffer T>
[src]

Deserialize the current type.

impl<'buffer, T: AsRef<[u8]> + ?Sized> Parseable<RouteMetricsNla> for NlaBuffer<&'buffer T>
[src]

Deserialize the current type.

impl<'buffer, T: AsRef<[u8]> + ?Sized> Parseable<RouteNla> for NlaBuffer<&'buffer T>
[src]

Deserialize the current type.

impl<T: Debug + AsRef<[u8]>> Debug for NlaBuffer<T>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq + AsRef<[u8]>> PartialEq for NlaBuffer<T>
[src]

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

This method tests for !=.

impl<T: Eq + AsRef<[u8]>> Eq for NlaBuffer<T>
[src]

impl<T: Clone + AsRef<[u8]>> Clone for NlaBuffer<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Copy + AsRef<[u8]>> Copy for NlaBuffer<T>
[src]

impl<'buffer, T: AsRef<[u8]> + ?Sized> Parseable<DefaultNla> for NlaBuffer<&'buffer T>
[src]

Deserialize the current type.

Auto Trait Implementations

impl<T> Send for NlaBuffer<T> where
    T: Send

impl<T> Sync for NlaBuffer<T> where
    T: Sync