Struct netzwork_api::NetInterfaceInfo
source · pub struct NetInterfaceInfo {
pub interfaces: Vec<NetInterfaceId>,
pub measurements: Vec<NetInterfaceConnectivityMeasurement>,
}
Fields§
§interfaces: Vec<NetInterfaceId>
§measurements: Vec<NetInterfaceConnectivityMeasurement>
Implementations§
source§impl NetInterfaceInfo
impl NetInterfaceInfo
pub fn new() -> NetInterfaceInfo
pub fn from_network_interfaces() -> Result<NetInterfaceInfo, Error>
Trait Implementations§
source§impl Clone for NetInterfaceInfo
impl Clone for NetInterfaceInfo
source§fn clone(&self) -> NetInterfaceInfo
fn clone(&self) -> NetInterfaceInfo
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 NetInterfaceInfo
impl Debug for NetInterfaceInfo
source§impl Default for NetInterfaceInfo
impl Default for NetInterfaceInfo
source§impl<'de> Deserialize<'de> for NetInterfaceInfo
impl<'de> Deserialize<'de> for NetInterfaceInfo
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<NetInterfaceInfo> for NetInterfaceInfo
impl PartialEq<NetInterfaceInfo> for NetInterfaceInfo
source§fn eq(&self, other: &NetInterfaceInfo) -> bool
fn eq(&self, other: &NetInterfaceInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NetInterfaceInfo
impl Serialize for NetInterfaceInfo
impl StructuralPartialEq for NetInterfaceInfo
Auto Trait Implementations§
impl RefUnwindSafe for NetInterfaceInfo
impl Send for NetInterfaceInfo
impl Sync for NetInterfaceInfo
impl Unpin for NetInterfaceInfo
impl UnwindSafe for NetInterfaceInfo
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