pub struct TcStat {
pub if_index: u32,
pub if_name: String,
pub handle: u32,
pub parent: u32,
pub kind: String,
pub stats: Stats,
pub qdisc: Option<QDisc>,
}Expand description
Tc represents a traffic control qdisc.
Fields§
§if_index: u32Index of the network interface.
if_name: StringName of the network interface.
handle: u32A unique identifier for the qdisc.
parent: u32Identifier of the parent qdisc.
kind: StringType of the queueing discipline, e.g. fq_codel, htb, etc.
stats: StatsDetailed statistics of the qdisc, such as bytes, packets, qlen, etc.
qdisc: Option<QDisc>qdisc wraps the specific qdisc type, e.g. fq_codel.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TcStat
impl<'de> Deserialize<'de> for TcStat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TcStat
Auto Trait Implementations§
impl Freeze for TcStat
impl RefUnwindSafe for TcStat
impl Send for TcStat
impl Sync for TcStat
impl Unpin for TcStat
impl UnwindSafe for TcStat
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