Enum passcod_networkmanager::types::DeviceState
source · pub enum DeviceState {
Show 13 variants
Unknown = 0,
Unmanaged = 10,
Unavailable = 20,
Disconnected = 30,
Preparing = 40,
Configuring = 50,
NeedsAuth = 60,
ConfiguringIP = 70,
CheckingIP = 80,
Secondaries = 90,
Activated = 100,
Deactivating = 110,
Failed = 120,
}Expand description
The state of a network device.
Variants§
Unknown = 0
The device’s state is unknown.
Unmanaged = 10
The device is recognized, but not managed by NetworkManager.
the device is managed by NetworkManager, but is not available for use.
Reasons may include the wireless switched off, missing firmware, no ethernet carrier, missing supplicant or modem manager, etc.
Disconnected = 30
The device can be activated, but is currently idle and not connected to a network.
Preparing = 40
The device is preparing the connection to the network.
This may include operations like changing the MAC address, setting physical link properties, and anything else required to connect to the requested network.
Configuring = 50
The device is connecting to the requested network.
This may include operations like associating with the Wi-Fi AP, dialing the modem, connecting to the remote Bluetooth device, etc.
NeedsAuth = 60
The device requires more information to continue connecting to the requested network.
This includes secrets like WiFi passphrases, login passwords, PIN codes, etc.
ConfiguringIP = 70
The device is requesting IPv4 and/or IPv6 addresses and routing information from the network.
CheckingIP = 80
The device is checking whether further action is required for the requested network connection.
This may include checking whether only local network access is available, whether a captive portal is blocking access to the Internet, etc.
Secondaries = 90
The device is waiting for a secondary connection (like a VPN) which must activate before this device can be activated.
Activated = 100
The device has a network connection, either local or global.
Deactivating = 110
A disconnection from the current network connection was requested, and the device is cleaning up resources used for that connection.
The network connection may still be valid.
Failed = 120
The device failed to connect to the requested network and is cleaning up the connection request.
Trait Implementations§
source§impl Clone for DeviceState
impl Clone for DeviceState
source§fn clone(&self) -> DeviceState
fn clone(&self) -> DeviceState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DeviceState
impl Debug for DeviceState
source§impl FromPrimitive for DeviceState
impl FromPrimitive for DeviceState
source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read more