Struct rtnetlink::NetlinkHeader[][src]

pub struct NetlinkHeader {
    pub length: u32,
    pub message_type: u16,
    pub flags: NetlinkFlags,
    pub sequence_number: u32,
    pub port_number: u32,
}

A Netlink header representation. For more details about the meaning of the fields, see man 7 netlink

Fields

Length of the netlink packet, including the header and the payload

NetlinkMessage type. The meaning of this field depends on the netlink protocol family in use.

Flags

Sequence number of the packet

Port number (usually set to the the process ID)

Methods

impl NetlinkHeader
[src]

Trait Implementations

impl Debug for NetlinkHeader
[src]

Formats the value using the given formatter. Read more

impl PartialEq for NetlinkHeader
[src]

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

This method tests for !=.

impl Eq for NetlinkHeader
[src]

impl Clone for NetlinkHeader
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for NetlinkHeader
[src]

impl Hash for NetlinkHeader
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for NetlinkHeader
[src]

Returns the "default value" for a type. Read more

impl Emitable for NetlinkHeader
[src]

Return the length of the serialized data.

Serialize this types and write the serialized data into the given buffer. Read more

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

Deserialize the current type.

Auto Trait Implementations