Struct rtnetlink::RouteBuffer[][src]

pub struct RouteBuffer<T> { /* fields omitted */ }

Methods

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

Consume the packet, returning the underlying buffer.

Return the address family field

Return the destination length field

Return the source length field

Return the tos field

Return the table id field

Return the routing protocol field

Return the scope field

Return the routie type field

Return the flags field

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

Return a pointer to the payload.

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

Return a mutable pointer to the payload.

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

Set the address family field

Set the destination length field

Set the source length field

Set the tos field

Set the table id field

Set the routing protocol field

Set the scope field

Set the routie type field

Set the flags field

Trait Implementations

impl<T: Debug> Debug for RouteBuffer<T>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for RouteBuffer<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> Eq for RouteBuffer<T>
[src]

impl<T: Clone> Clone for RouteBuffer<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, T: AsRef<[u8]> + ?Sized> Parseable<RouteHeader> for RouteBuffer<&'a T>
[src]

Deserialize the current type.

impl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<RouteMessage> for RouteBuffer<&'buffer T>
[src]

Deserialize the current type.

impl<'buffer, T: AsRef<[u8]> + 'buffer> Parseable<Vec<RouteNla>> for RouteBuffer<&'buffer T>
[src]

Deserialize the current type.

Auto Trait Implementations

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

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