pub struct Properties<I: FieldInterests> {
pub id: NonZeroU64,
pub name: String,
pub online: bool,
pub addresses: Vec<Address<I>>,
pub has_default_ipv4_route: bool,
pub has_default_ipv6_route: bool,
pub port_class: PortClass,
}
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.
online: bool
The device is enabled and its physical state is online.
addresses: Vec<Address<I>>
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.
port_class: PortClass
The device type of the interface. Immutable.
Trait Implementations§
Source§impl<I: FieldInterests> Clone for Properties<I>
impl<I: FieldInterests> Clone for Properties<I>
Source§impl<I: FieldInterests> Debug for Properties<I>
impl<I: FieldInterests> Debug for Properties<I>
Source§impl<I: FieldInterests> From<Properties<I>> for Properties
impl<I: FieldInterests> From<Properties<I>> for Properties
Source§fn from(src: Properties<I>) -> Properties
fn from(src: Properties<I>) -> Properties
Converts to this type from the input type.
Source§impl<I: FieldInterests> PartialEq for Properties<I>
impl<I: FieldInterests> PartialEq for Properties<I>
Source§impl<I: FieldInterests> TryFrom<Properties> for Properties<I>
impl<I: FieldInterests> TryFrom<Properties> for Properties<I>
Source§type Error = PropertiesValidationError
type Error = PropertiesValidationError
The type returned in the event of a conversion error.
impl<I: FieldInterests> Eq for Properties<I>
Auto Trait Implementations§
impl<I> Freeze for Properties<I>
impl<I> RefUnwindSafe for Properties<I>where
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: RefUnwindSafe,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: RefUnwindSafe,
impl<I> Send for Properties<I>where
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: Send,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: Send,
impl<I> Sync for Properties<I>where
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: Sync,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: Sync,
impl<I> Unpin for Properties<I>where
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: Unpin,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: Unpin,
impl<I> UnwindSafe for Properties<I>where
<<I as FieldInterests>::ValidUntil as MaybeInterest<PositiveMonotonicInstant>>::Ty: UnwindSafe,
<<I as FieldInterests>::PreferredLifetimeInfo as MaybeInterest<PreferredLifetimeInfo>>::Ty: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)