pub struct Tcmsg { /* private fields */ }
Expand description
Message in response to queuing discipline operations
Implementations§
Source§impl Tcmsg
impl Tcmsg
Sourcepub fn tcm_family(&self) -> &c_uchar
pub fn tcm_family(&self) -> &c_uchar
Family
Sourcepub fn tcm_ifindex(&self) -> &c_int
pub fn tcm_ifindex(&self) -> &c_int
Interface index
Sourcepub fn tcm_handle(&self) -> &u32
pub fn tcm_handle(&self) -> &u32
Queuing discipline handle
Sourcepub fn tcm_parent(&self) -> &u32
pub fn tcm_parent(&self) -> &u32
Parent queuing discipline
Trait Implementations§
Source§impl FromBytesWithInput for Tcmsg
impl FromBytesWithInput 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 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