pub struct Interface {
pub name: String,
pub latency: String,
pub metric: u64,
pub bandwidth: String,
pub mtu: u32,
pub idx: usize,
pub peer: Option<Endpoint>,
}Fields§
§name: StringName of the Interface
latency: StringLatency of the Link
metric: u64Metric of the Interface
bandwidth: StringBandwidth of the Link
mtu: u32MTU of the Link
idx: usizeIndex of the current Endpoint in the Endpoints list defined in the configuration
peer: Option<Endpoint>Peer Endpoint
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Interface
impl<'de> Deserialize<'de> for Interface
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 From<&LinksDefaults> for Interface
impl From<&LinksDefaults> for Interface
Source§fn from(dflt: &LinksDefaults) -> Self
fn from(dflt: &LinksDefaults) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnwindSafe for Interface
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