pub struct InterfaceVitals {
pub id: InterfaceId,
pub connection: ConnectionState,
pub failure_reason: Option<&'static str>,
pub rx_bytes: u64,
pub tx_bytes: u64,
pub transfer_rates: Option<TransferRates>,
}Fields§
§id: InterfaceId§connection: ConnectionState§failure_reason: Option<&'static str>§rx_bytes: u64§tx_bytes: u64§transfer_rates: Option<TransferRates>Implementations§
Source§impl InterfaceVitals
impl InterfaceVitals
pub fn of(status: &impl InterfaceStatus) -> InterfaceVitals
Trait Implementations§
Source§impl Clone for InterfaceVitals
impl Clone for InterfaceVitals
Source§fn clone(&self) -> InterfaceVitals
fn clone(&self) -> InterfaceVitals
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 moreimpl Copy for InterfaceVitals
Source§impl Debug for InterfaceVitals
impl Debug for InterfaceVitals
impl Eq for InterfaceVitals
Source§impl PartialEq for InterfaceVitals
impl PartialEq for InterfaceVitals
impl StructuralPartialEq for InterfaceVitals
Auto Trait Implementations§
impl Freeze for InterfaceVitals
impl RefUnwindSafe for InterfaceVitals
impl Send for InterfaceVitals
impl Sync for InterfaceVitals
impl Unpin for InterfaceVitals
impl UnsafeUnpin for InterfaceVitals
impl UnwindSafe for InterfaceVitals
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