pub struct SingleNetModel {
Show 30 fields pub interface: String, pub rx_bytes_per_sec: Option<f64>, pub tx_bytes_per_sec: Option<f64>, pub throughput_per_sec: Option<f64>, pub rx_packets_per_sec: Option<u64>, pub tx_packets_per_sec: Option<u64>, pub collisions: Option<u64>, pub multicast: Option<u64>, pub rx_bytes: Option<u64>, pub rx_compressed: Option<u64>, pub rx_crc_errors: Option<u64>, pub rx_dropped: Option<u64>, pub rx_errors: Option<u64>, pub rx_fifo_errors: Option<u64>, pub rx_frame_errors: Option<u64>, pub rx_length_errors: Option<u64>, pub rx_missed_errors: Option<u64>, pub rx_nohandler: Option<u64>, pub rx_over_errors: Option<u64>, pub rx_packets: Option<u64>, pub tx_aborted_errors: Option<u64>, pub tx_bytes: Option<u64>, pub tx_carrier_errors: Option<u64>, pub tx_compressed: Option<u64>, pub tx_dropped: Option<u64>, pub tx_errors: Option<u64>, pub tx_fifo_errors: Option<u64>, pub tx_heartbeat_errors: Option<u64>, pub tx_packets: Option<u64>, pub tx_window_errors: Option<u64>,
}

Fields§

§interface: String§rx_bytes_per_sec: Option<f64>§tx_bytes_per_sec: Option<f64>§throughput_per_sec: Option<f64>§rx_packets_per_sec: Option<u64>§tx_packets_per_sec: Option<u64>§collisions: Option<u64>§multicast: Option<u64>§rx_bytes: Option<u64>§rx_compressed: Option<u64>§rx_crc_errors: Option<u64>§rx_dropped: Option<u64>§rx_errors: Option<u64>§rx_fifo_errors: Option<u64>§rx_frame_errors: Option<u64>§rx_length_errors: Option<u64>§rx_missed_errors: Option<u64>§rx_nohandler: Option<u64>§rx_over_errors: Option<u64>§rx_packets: Option<u64>§tx_aborted_errors: Option<u64>§tx_bytes: Option<u64>§tx_carrier_errors: Option<u64>§tx_compressed: Option<u64>§tx_dropped: Option<u64>§tx_errors: Option<u64>§tx_fifo_errors: Option<u64>§tx_heartbeat_errors: Option<u64>§tx_packets: Option<u64>§tx_window_errors: Option<u64>

Trait Implementations§

source§

impl Default for SingleNetModel

source§

fn default() -> SingleNetModel

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for SingleNetModel

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Nameable for SingleNetModel

source§

fn name() -> &'static str

The name of the model (for example “cgroup” or “system”)
source§

impl Queriable for SingleNetModel

§

type FieldId = SingleNetModelFieldId

source§

fn query(&self, field_id: &Self::FieldId) -> Option<Field>

source§

impl Serialize for SingleNetModel

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Serialize for Twhere T: Serialize + ?Sized,

source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

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

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> With for T

§

fn wrap_with<U, F>(self, f: F) -> Uwhere F: FnOnce(Self) -> U,

Calls the given closure and return the result. Read more
§

fn with<F>(self, f: F) -> Selfwhere F: FnOnce(&mut Self),

Calls the given closure on self.
§

fn try_with<E, F>(self, f: F) -> Result<Self, E>where F: FnOnce(&mut Self) -> Result<(), E>,

Calls the given closure on self.
§

fn with_if<F>(self, condition: bool, f: F) -> Selfwhere F: FnOnce(&mut Self),

Calls the given closure if condition == true.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,

§

impl<T> Erased for T

source§

impl<T> SendSyncUnwindSafe for Twhere T: Send + Sync + UnwindSafe + ?Sized,