pub struct SwitchPortStats {
pub port_id: usize,
pub node: String,
pub mac: String,
pub ip: String,
pub link_up: bool,
pub drop_pct: u8,
pub delay_ms: u64,
pub tx_frames: u64,
pub rx_frames: u64,
pub dropped_frames: u64,
pub has_uplink: bool,
}Expand description
Live statistics for a single switch port.
Fields§
§port_id: usize§node: String§mac: String§ip: String§link_up: bool§drop_pct: u8§delay_ms: u64§tx_frames: u64§rx_frames: u64§dropped_frames: u64§has_uplink: boolTrait Implementations§
Source§impl Clone for SwitchPortStats
impl Clone for SwitchPortStats
Source§impl Debug for SwitchPortStats
impl Debug for SwitchPortStats
Auto Trait Implementations§
impl Forget for SwitchPortStats
impl Freeze for SwitchPortStats
impl Move for SwitchPortStats
impl RefUnwindSafe for SwitchPortStats
impl Send for SwitchPortStatswhere
RawVecInner: Send,
impl Sync for SwitchPortStatswhere
RawVecInner: Sync,
impl Unpin for SwitchPortStats
impl UnsafeUnpin for SwitchPortStats
impl UnwindSafe for SwitchPortStatswhere
RawVecInner: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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