Struct ntap_core::net::traffic::TrafficDisplayInfo
source · pub struct TrafficDisplayInfo {Show 15 fields
pub packet_sent: usize,
pub packet_received: usize,
pub bytes_sent: usize,
pub bytes_received: usize,
pub egress_packets_per_sec: usize,
pub egress_bytes_per_sec: usize,
pub ingress_packets_per_sec: usize,
pub ingress_bytes_per_sec: usize,
pub formatted_sent_bytes: String,
pub formatted_received_bytes: String,
pub formatted_total_bytes: String,
pub formatted_egress_packets_per_sec: String,
pub formatted_ingress_packets_per_sec: String,
pub formatted_egress_bytes_per_sec: String,
pub formatted_ingress_bytes_per_sec: String,
}
Fields§
§packet_sent: usize
§packet_received: usize
§bytes_sent: usize
§bytes_received: usize
§egress_packets_per_sec: usize
§egress_bytes_per_sec: usize
§ingress_packets_per_sec: usize
§ingress_bytes_per_sec: usize
§formatted_sent_bytes: String
§formatted_received_bytes: String
§formatted_total_bytes: String
§formatted_egress_packets_per_sec: String
§formatted_ingress_packets_per_sec: String
§formatted_egress_bytes_per_sec: String
§formatted_ingress_bytes_per_sec: String
Implementations§
source§impl TrafficDisplayInfo
impl TrafficDisplayInfo
pub fn new() -> Self
pub fn from_traffic(traffic: &TrafficInfo) -> Self
Trait Implementations§
source§impl Clone for TrafficDisplayInfo
impl Clone for TrafficDisplayInfo
source§fn clone(&self) -> TrafficDisplayInfo
fn clone(&self) -> TrafficDisplayInfo
Returns a copy of the value. Read more
1.0.0 · 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 TrafficDisplayInfo
impl Debug for TrafficDisplayInfo
source§impl<'de> Deserialize<'de> for TrafficDisplayInfo
impl<'de> Deserialize<'de> for TrafficDisplayInfo
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
Auto Trait Implementations§
impl Freeze for TrafficDisplayInfo
impl RefUnwindSafe for TrafficDisplayInfo
impl Send for TrafficDisplayInfo
impl Sync for TrafficDisplayInfo
impl Unpin for TrafficDisplayInfo
impl UnwindSafe for TrafficDisplayInfo
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more