pub struct InstanceStateNetworkCounters {
pub bytes_received: Option<i64>,
pub bytes_sent: Option<i64>,
pub errors_received: Option<i64>,
pub errors_sent: Option<i64>,
pub packets_dropped_inbound: Option<i64>,
pub packets_dropped_outbound: Option<i64>,
pub packets_received: Option<i64>,
pub packets_sent: Option<i64>,
}Expand description
InstanceStateNetworkCounters : InstanceStateNetworkCounters represents packet counters as part of the network section of an instance’s state.
Fields§
§bytes_received: Option<i64>Number of bytes received
bytes_sent: Option<i64>Number of bytes sent
errors_received: Option<i64>Number of errors received
errors_sent: Option<i64>Number of errors sent
packets_dropped_inbound: Option<i64>Number of inbound packets dropped
packets_dropped_outbound: Option<i64>Number of outbound packets dropped
packets_received: Option<i64>Number of packets received
packets_sent: Option<i64>Number of packets sent
Implementations§
Source§impl InstanceStateNetworkCounters
impl InstanceStateNetworkCounters
Sourcepub fn new() -> InstanceStateNetworkCounters
pub fn new() -> InstanceStateNetworkCounters
InstanceStateNetworkCounters represents packet counters as part of the network section of an instance’s state.
Trait Implementations§
Source§impl Clone for InstanceStateNetworkCounters
impl Clone for InstanceStateNetworkCounters
Source§fn clone(&self) -> InstanceStateNetworkCounters
fn clone(&self) -> InstanceStateNetworkCounters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstanceStateNetworkCounters
impl Debug for InstanceStateNetworkCounters
Source§impl Default for InstanceStateNetworkCounters
impl Default for InstanceStateNetworkCounters
Source§fn default() -> InstanceStateNetworkCounters
fn default() -> InstanceStateNetworkCounters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InstanceStateNetworkCounters
impl<'de> Deserialize<'de> for InstanceStateNetworkCounters
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
Source§impl PartialEq for InstanceStateNetworkCounters
impl PartialEq for InstanceStateNetworkCounters
Source§fn eq(&self, other: &InstanceStateNetworkCounters) -> bool
fn eq(&self, other: &InstanceStateNetworkCounters) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstanceStateNetworkCounters
Auto Trait Implementations§
impl Freeze for InstanceStateNetworkCounters
impl RefUnwindSafe for InstanceStateNetworkCounters
impl Send for InstanceStateNetworkCounters
impl Sync for InstanceStateNetworkCounters
impl Unpin for InstanceStateNetworkCounters
impl UnsafeUnpin for InstanceStateNetworkCounters
impl UnwindSafe for InstanceStateNetworkCounters
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