pub enum StateReason {
Show 50 variants
Unknown,
None,
UserDisconnected,
DeviceDisconnected,
CarrierChanged,
SupplicantDisconnected,
SupplicantConfigFailed,
SupplicantFailed,
SupplicantTimeout,
PppStartFailed,
DhcpStartFailed,
DhcpError,
DhcpFailed,
ModemConnectionFailed,
ModemInitFailed,
InfinibandMode,
DependencyFailed,
Br2684Failed,
ModeSetFailed,
GsmApnSelectFailed,
GsmNotSearching,
GsmRegistrationDenied,
GsmRegistrationTimeout,
GsmRegistrationFailed,
GsmPinCheckFailed,
FirmwareMissing,
DeviceRemoved,
Sleeping,
ConnectionRemoved,
UserRequested,
Carrier,
ConnectionAssumed,
SupplicantAvailable,
ModemNotFound,
BluetoothFailed,
GsmSimNotInserted,
GsmSimPinRequired,
GsmSimPukRequired,
GsmSimWrong,
SsidNotFound,
SecondaryConnectionFailed,
DcbFcoeFailed,
TeamdControlFailed,
ModemFailed,
ModemAvailable,
SimPinIncorrect,
NewActivationEnqueued,
ParentUnreachable,
ParentChanged,
Other(u32),
}Expand description
NetworkManager device state reason codes.
These values come from the NM D-Bus API and indicate why a device
transitioned to its current state. Use StateReason::from(code) to
convert from the raw u32 values returned by NetworkManager.
Variants§
Unknown
None
UserDisconnected
DeviceDisconnected
CarrierChanged
SupplicantDisconnected
SupplicantConfigFailed
SupplicantFailed
SupplicantTimeout
PppStartFailed
DhcpStartFailed
DhcpError
DhcpFailed
ModemConnectionFailed
ModemInitFailed
InfinibandMode
DependencyFailed
Br2684Failed
ModeSetFailed
GsmApnSelectFailed
GsmNotSearching
GsmRegistrationDenied
GsmRegistrationTimeout
GsmRegistrationFailed
GsmPinCheckFailed
FirmwareMissing
DeviceRemoved
Sleeping
ConnectionRemoved
UserRequested
Carrier
ConnectionAssumed
SupplicantAvailable
ModemNotFound
BluetoothFailed
GsmSimNotInserted
GsmSimPinRequired
GsmSimPukRequired
GsmSimWrong
SsidNotFound
SecondaryConnectionFailed
DcbFcoeFailed
TeamdControlFailed
ModemFailed
ModemAvailable
SimPinIncorrect
NewActivationEnqueued
ParentUnreachable
ParentChanged
Other(u32)
Unknown reason code not mapped to a specific variant.
Trait Implementations§
Source§impl Clone for StateReason
impl Clone for StateReason
Source§fn clone(&self) -> StateReason
fn clone(&self) -> StateReason
Returns a duplicate 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 StateReason
impl Debug for StateReason
Source§impl Display for StateReason
impl Display for StateReason
Source§impl From<u32> for StateReason
impl From<u32> for StateReason
Source§impl PartialEq for StateReason
impl PartialEq for StateReason
impl Copy for StateReason
impl Eq for StateReason
impl StructuralPartialEq for StateReason
Auto Trait Implementations§
impl Freeze for StateReason
impl RefUnwindSafe for StateReason
impl Send for StateReason
impl Sync for StateReason
impl Unpin for StateReason
impl UnwindSafe for StateReason
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