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 Rtattr
s
Implementations§
Trait Implementations§
source§impl<'lifetime> FromBytesWithInput<'lifetime> for Tcmsg
impl<'lifetime> FromBytesWithInput<'lifetime> for Tcmsg
source§impl Header for Tcmsg
impl Header for Tcmsg
source§fn header_size() -> usize
fn header_size() -> usize
Return the size in bytes of the data structure header.
source§impl Size for Tcmsg
impl Size for Tcmsg
source§fn unpadded_size(&self) -> usize
fn unpadded_size(&self) -> usize
Size of the unpadded data structure. This will usually
only be unaligned for variable length types like
strings or byte buffers.
source§fn padded_size(&self) -> usize
fn padded_size(&self) -> usize
Get the size of of the payload and align it to
the required netlink byte alignment.