pub enum ViabilityError {
IsDown,
NotPhysical,
NoMacAddress,
NotBroadcast,
IsPointToPoint,
NoValidLanIp,
}Expand description
Errors arising from network validation constraints during LAN interface selection.
Variants§
IsDown
The interface is operationally down.
NotPhysical
The interface was filtered out as “not physical” by the provided logic.
NoMacAddress
The interface does not have a MAC address.
NotBroadcast
The interface does not support broadcast (required for ARP).
IsPointToPoint
The interface is a point-to-point link (e.g., a VPN).
NoValidLanIp
The interface has no IPv4 address (for ARP) AND no IPv6 Link-Local (for NDP).
Trait Implementations§
Source§impl Clone for ViabilityError
impl Clone for ViabilityError
Source§fn clone(&self) -> ViabilityError
fn clone(&self) -> ViabilityError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ViabilityError
Source§impl Debug for ViabilityError
impl Debug for ViabilityError
impl Eq for ViabilityError
Source§impl PartialEq for ViabilityError
impl PartialEq for ViabilityError
impl StructuralPartialEq for ViabilityError
Auto Trait Implementations§
impl Freeze for ViabilityError
impl RefUnwindSafe for ViabilityError
impl Send for ViabilityError
impl Sync for ViabilityError
impl Unpin for ViabilityError
impl UnsafeUnpin for ViabilityError
impl UnwindSafe for ViabilityError
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more