Struct neli::rtnl::Ifaddrmsg

source ·
pub struct Ifaddrmsg {
    pub ifa_family: RtAddrFamily,
    pub ifa_prefixlen: c_uchar,
    pub ifa_flags: IfaFFlags,
    pub ifa_scope: c_uchar,
    pub ifa_index: c_int,
    pub rtattrs: RtBuffer<Ifa, Buffer>,
}
Expand description

Struct representing interface address messages

Fields§

§ifa_family: RtAddrFamily

Interface address family

§ifa_prefixlen: c_uchar

Interface address prefix length

§ifa_flags: IfaFFlags

Interface address flags

§ifa_scope: c_uchar

Interface address scope

§ifa_index: c_int

Interface address index

§rtattrs: RtBuffer<Ifa, Buffer>

Payload of Rtattrs

Trait Implementations§

Formats the value using the given formatter. Read more
The type of the additional input.
Takes a byte buffer and an additional input and returns the deserialized data structure.
Return the size in bytes of the data structure header.
Size of the unpadded data structure. This will usually only be unaligned for variable length types like strings or byte buffers.
Get the size of of the payload and align it to the required netlink byte alignment.
Takes a byte buffer and serializes the data structure into it.
Pad a netlink message to the appropriate alignment.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.