Struct neli::rtnl::Tcmsg

source ·
pub struct Tcmsg {
    pub tcm_family: c_uchar,
    pub tcm_ifindex: c_int,
    pub tcm_handle: u32,
    pub tcm_parent: u32,
    pub tcm_info: u32,
    pub rtattrs: RtBuffer<Tca, Buffer>,
    /* private fields */
}
Expand description

Message in response to queuing discipline operations

Fields§

§tcm_family: c_uchar

Family

§tcm_ifindex: c_int

Interface index

§tcm_handle: u32

Queuing discipline handle

§tcm_parent: u32

Parent queuing discipline

§tcm_info: u32

Info

§rtattrs: RtBuffer<Tca, Buffer>

Payload of Rtattrs

Implementations§

Create a new Tcmsg structure handling the necessary padding.

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.