pub enum DeviceStateReason {
Show 68 variants
None = 0,
Unknown = 1,
NowManaged = 2,
NowUnmanaged = 3,
ConfigFailed = 4,
IpConfigUnavailable = 5,
IpConfigExpired = 6,
NoSecrets = 7,
SupplicantDisconnect = 8,
SupplicantConfigFailed = 9,
SupplicantFailed = 10,
SupplicantTimeout = 11,
PppStartFailed = 12,
PppDisconnect = 13,
PppFailed = 14,
DhcpStartFailed = 15,
DhcpError = 16,
DhcpFailed = 17,
SharedStartFailed = 18,
SharedFailed = 19,
AutoipStartFailed = 20,
AutoipError = 21,
AutoipFailed = 22,
ModemBusy = 23,
ModemNoDialTone = 24,
ModemNoCarrier = 25,
ModemDialTimeout = 26,
ModemDialFailed = 27,
ModemInitFailed = 28,
GsmApnFailed = 29,
GsmRegistrationNotSearching = 30,
GsmRegistrationDenied = 31,
GsmRegistrationTimeout = 32,
GsmRegistrationFailed = 33,
GsmPinCheckFailed = 34,
FirmwareMissing = 35,
Removed = 36,
Sleeping = 37,
ConnectionRemoved = 38,
UserRequested = 39,
Carrier = 40,
ConnectionAssumed = 41,
SupplicantAvailable = 42,
ModemNotFound = 43,
BtFailed = 44,
GsmSimNotInserted = 45,
GsmSimPinRequired = 46,
GsmSimPukRequired = 47,
GsmSimWrong = 48,
InfinibandMode = 49,
DependencyFailed = 50,
Br2684Failed = 51,
ModemManagerUnavailable = 52,
SsidNotFound = 53,
SecondaryConnectionFailed = 54,
DcbFcoeFailed = 55,
TeamdControlFailed = 56,
ModemFailed = 57,
ModemAvailable = 58,
SimPinIncorrect = 59,
NewActivation = 60,
ParentChanged = 61,
ParentManagedChanged = 62,
OvsdbFailed = 63,
IpAddressDuplicate = 64,
IpMethodUnsupported = 65,
SriovConfigurationFailed = 66,
PeerNotFound = 67,
}Expand description
The reason a network device changed to its current state.
Variants§
None = 0
Unknown = 1
NowManaged = 2
NowUnmanaged = 3
ConfigFailed = 4
IpConfigExpired = 6
NoSecrets = 7
SupplicantDisconnect = 8
SupplicantConfigFailed = 9
SupplicantFailed = 10
SupplicantTimeout = 11
PppStartFailed = 12
PppDisconnect = 13
PppFailed = 14
DhcpStartFailed = 15
DhcpError = 16
DhcpFailed = 17
AutoipStartFailed = 20
AutoipError = 21
AutoipFailed = 22
ModemBusy = 23
ModemNoDialTone = 24
ModemNoCarrier = 25
ModemDialTimeout = 26
ModemDialFailed = 27
ModemInitFailed = 28
GsmApnFailed = 29
GsmRegistrationNotSearching = 30
GsmRegistrationDenied = 31
GsmRegistrationTimeout = 32
GsmRegistrationFailed = 33
GsmPinCheckFailed = 34
FirmwareMissing = 35
Removed = 36
Sleeping = 37
ConnectionRemoved = 38
UserRequested = 39
Carrier = 40
ConnectionAssumed = 41
SupplicantAvailable = 42
ModemNotFound = 43
BtFailed = 44
GsmSimNotInserted = 45
GsmSimPinRequired = 46
GsmSimPukRequired = 47
GsmSimWrong = 48
InfinibandMode = 49
DependencyFailed = 50
Br2684Failed = 51
SsidNotFound = 53
SecondaryConnectionFailed = 54
DcbFcoeFailed = 55
TeamdControlFailed = 56
ModemFailed = 57
ModemAvailable = 58
SimPinIncorrect = 59
NewActivation = 60
ParentChanged = 61
ParentManagedChanged = 62
OvsdbFailed = 63
IpAddressDuplicate = 64
IpMethodUnsupported = 65
SriovConfigurationFailed = 66
PeerNotFound = 67
Trait Implementations§
source§impl Clone for DeviceStateReason
impl Clone for DeviceStateReason
source§fn clone(&self) -> DeviceStateReason
fn clone(&self) -> DeviceStateReason
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 DeviceStateReason
impl Debug for DeviceStateReason
source§impl FromPrimitive for DeviceStateReason
impl FromPrimitive for DeviceStateReason
source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moresource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreimpl Copy for DeviceStateReason
Auto Trait Implementations§
impl RefUnwindSafe for DeviceStateReason
impl Send for DeviceStateReason
impl Sync for DeviceStateReason
impl Unpin for DeviceStateReason
impl UnwindSafe for DeviceStateReason
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