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.
Auto Trait Implementations§
impl Freeze for Tcmsg
impl RefUnwindSafe for Tcmsg
impl Send for Tcmsg
impl Sync for Tcmsg
impl Unpin for Tcmsg
impl UnwindSafe for Tcmsg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more