#[non_exhaustive]pub enum DeviceState {
Unmanaged,
Unavailable,
Disconnected,
Prepare,
Config,
Activated,
Deactivating,
Failed,
Other(u32),
}Expand description
NetworkManager device states.
Represents the current operational state of a network device.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unmanaged
Device is not managed by NetworkManager.
Device is managed but not yet available (e.g., Wi-Fi disabled).
Disconnected
Device is available but not connected.
Prepare
Device is preparing to connect.
Config
Device is being configured (IP, etc.).
Activated
Device is fully connected and operational.
Deactivating
Device is disconnecting.
Failed
Device connection failed.
Other(u32)
Unknown or unsupported state with raw code.
Trait Implementations§
Source§impl Clone for DeviceState
impl Clone for DeviceState
Source§fn clone(&self) -> DeviceState
fn clone(&self) -> DeviceState
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 DeviceState
impl Debug for DeviceState
Source§impl Display for DeviceState
impl Display for DeviceState
Source§impl From<u32> for DeviceState
impl From<u32> for DeviceState
Source§impl PartialEq for DeviceState
impl PartialEq for DeviceState
impl StructuralPartialEq for DeviceState
Auto Trait Implementations§
impl Freeze for DeviceState
impl RefUnwindSafe for DeviceState
impl Send for DeviceState
impl Sync for DeviceState
impl Unpin for DeviceState
impl UnwindSafe for DeviceState
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