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: NonZeroU64An opaque identifier for the interface. Its value will not be reused even if the device is removed and subsequently re-added. Immutable.
name: StringThe name of the interface. Immutable.
online: boolThe device is enabled and its physical state is online.
addresses: Vec<Address<I>>The addresses currently assigned to the interface.
has_default_ipv4_route: boolWhether there is a default IPv4 route through this interface.
has_default_ipv6_route: boolWhether there is a default IPv6 route through this interface.
port_class: PortClassThe 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>
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