Struct libzt::zts_stats_counter_t[][src]

#[repr(C)]
pub struct zts_stats_counter_t {
Show fields pub link_tx: u32, pub link_rx: u32, pub link_drop: u32, pub link_err: u32, pub etharp_tx: u32, pub etharp_rx: u32, pub etharp_drop: u32, pub etharp_err: u32, pub ip4_tx: u32, pub ip4_rx: u32, pub ip4_drop: u32, pub ip4_err: u32, pub ip6_tx: u32, pub ip6_rx: u32, pub ip6_drop: u32, pub ip6_err: u32, pub icmp4_tx: u32, pub icmp4_rx: u32, pub icmp4_drop: u32, pub icmp4_err: u32, pub icmp6_tx: u32, pub icmp6_rx: u32, pub icmp6_drop: u32, pub icmp6_err: u32, pub udp_tx: u32, pub udp_rx: u32, pub udp_drop: u32, pub udp_err: u32, pub tcp_tx: u32, pub tcp_rx: u32, pub tcp_drop: u32, pub tcp_err: u32, pub nd6_tx: u32, pub nd6_rx: u32, pub nd6_drop: u32, pub nd6_err: u32,
}
Expand description

Structure containing counters for various protocol statistics

Fields

link_tx: u32

Number of link packets transmitted

link_rx: u32

Number of link packets received

link_drop: u32

Number of link packets dropped

link_err: u32

Aggregate number of link-level errors

etharp_tx: u32

Number of etharp packets transmitted

etharp_rx: u32

Number of etharp packets received

etharp_drop: u32

Number of etharp packets dropped

etharp_err: u32

Aggregate number of etharp errors

ip4_tx: u32

Number of IPv4 packets transmitted

ip4_rx: u32

Number of IPv4 packets received

ip4_drop: u32

Number of IPv4 packets dropped

ip4_err: u32

Aggregate number of IPv4 errors

ip6_tx: u32

Number of IPv6 packets transmitted

ip6_rx: u32

Number of IPv6 packets received

ip6_drop: u32

Number of IPv6 packets dropped

ip6_err: u32

Aggregate number of IPv6 errors

icmp4_tx: u32

Number of ICMPv4 packets transmitted

icmp4_rx: u32

Number of ICMPv4 packets received

icmp4_drop: u32

Number of ICMPv4 packets dropped

icmp4_err: u32

Aggregate number of ICMPv4 errors

icmp6_tx: u32

Number of ICMPv6 packets transmitted

icmp6_rx: u32

Number of ICMPv6 packets received

icmp6_drop: u32

Number of ICMPv6 packets dropped

icmp6_err: u32

Aggregate number of ICMPv6 errors

udp_tx: u32

Number of UDP packets transmitted

udp_rx: u32

Number of UDP packets received

udp_drop: u32

Number of UDP packets dropped

udp_err: u32

Aggregate number of UDP errors

tcp_tx: u32

Number of TCP packets transmitted

tcp_rx: u32

Number of TCP packets received

tcp_drop: u32

Number of TCP packets dropped

tcp_err: u32

Aggregate number of TCP errors

nd6_tx: u32

Number of ND6 packets transmitted

nd6_rx: u32

Number of ND6 packets received

nd6_drop: u32

Number of ND6 packets dropped

nd6_err: u32

Aggregate number of ND6 errors

Trait Implementations

impl Clone for zts_stats_counter_t[src]

fn clone(&self) -> zts_stats_counter_t[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for zts_stats_counter_t[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Copy for zts_stats_counter_t[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.