pub struct Properties {
pub id: NonZeroU64,
pub name: String,
pub device_class: DeviceClass,
pub online: bool,
pub addresses: Vec<Address>,
pub has_default_ipv4_route: bool,
pub has_default_ipv6_route: bool,
}
Expand description
Properties of a network interface.
Fields§
§id: NonZeroU64
An opaque identifier for the interface. Its value will not be reused even if the device is removed and subsequently re-added. Immutable.
name: String
The name of the interface. Immutable.
device_class: DeviceClass
The device class of the interface. Immutable.
online: bool
The device is enabled and its physical state is online.
addresses: Vec<Address>
The addresses currently assigned to the interface.
has_default_ipv4_route: bool
Whether there is a default IPv4 route through this interface.
has_default_ipv6_route: bool
Whether there is a default IPv6 route through this interface.
Trait Implementations§
source§impl Clone for Properties
impl Clone for Properties
source§fn clone(&self) -> Properties
fn clone(&self) -> Properties
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 Properties
impl Debug for Properties
source§impl From<Properties> for Properties
impl From<Properties> for Properties
source§fn from(src: Properties) -> Properties
fn from(src: Properties) -> Properties
Converts to this type from the input type.
source§impl PartialEq for Properties
impl PartialEq for Properties
source§fn eq(&self, other: &Properties) -> bool
fn eq(&self, other: &Properties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Properties> for Properties
impl TryFrom<Properties> for Properties
§type Error = PropertiesValidationError
type Error = PropertiesValidationError
The type returned in the event of a conversion error.
impl Eq for Properties
impl StructuralPartialEq for Properties
Auto Trait Implementations§
impl Freeze for Properties
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
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