pub struct InterfaceSnapshot {
pub id: InterfaceId,
pub mode: InterfaceMode,
pub gravity: InterfaceGravity,
pub connection: ConnectionState,
pub failure_reason: Option<&'static str>,
pub rx_bytes: u64,
pub tx_bytes: u64,
pub transfer_rates: Option<TransferRates>,
pub destinations: u32,
pub links: u32,
pub transported_links: u32,
pub membership: Membership,
}Fields§
§id: InterfaceId§mode: InterfaceMode§gravity: InterfaceGravity§connection: ConnectionState§failure_reason: Option<&'static str>§rx_bytes: u64§tx_bytes: u64§transfer_rates: Option<TransferRates>§destinations: u32§links: u32§transported_links: u32§membership: MembershipTrait Implementations§
Source§impl Clone for InterfaceSnapshot
impl Clone for InterfaceSnapshot
Source§fn clone(&self) -> InterfaceSnapshot
fn clone(&self) -> InterfaceSnapshot
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 InterfaceSnapshot
Source§impl Debug for InterfaceSnapshot
impl Debug for InterfaceSnapshot
impl Eq for InterfaceSnapshot
Source§impl PartialEq for InterfaceSnapshot
impl PartialEq for InterfaceSnapshot
impl StructuralPartialEq for InterfaceSnapshot
Auto Trait Implementations§
impl Freeze for InterfaceSnapshot
impl RefUnwindSafe for InterfaceSnapshot
impl Send for InterfaceSnapshot
impl Sync for InterfaceSnapshot
impl Unpin for InterfaceSnapshot
impl UnsafeUnpin for InterfaceSnapshot
impl UnwindSafe for InterfaceSnapshot
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