#[non_exhaustive]pub enum ActiveConnectionState {
Unknown,
Activating,
Activated,
Deactivating,
Deactivated,
Other(u32),
}Expand description
NetworkManager active connection state.
These values represent the lifecycle states of an active connection as reported by the NM D-Bus API.
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.
Unknown
Connection state is unknown.
Activating
Connection is activating (connecting).
Activated
Connection is fully activated (connected).
Deactivating
Connection is deactivating (disconnecting).
Deactivated
Connection is fully deactivated (disconnected).
Other(u32)
Unknown state code not mapped to a specific variant.
Trait Implementations§
Source§impl Clone for ActiveConnectionState
impl Clone for ActiveConnectionState
Source§fn clone(&self) -> ActiveConnectionState
fn clone(&self) -> ActiveConnectionState
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 moreSource§impl Debug for ActiveConnectionState
impl Debug for ActiveConnectionState
Source§impl Display for ActiveConnectionState
impl Display for ActiveConnectionState
Source§impl From<u32> for ActiveConnectionState
impl From<u32> for ActiveConnectionState
Source§impl PartialEq for ActiveConnectionState
impl PartialEq for ActiveConnectionState
Source§fn eq(&self, other: &ActiveConnectionState) -> bool
fn eq(&self, other: &ActiveConnectionState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ActiveConnectionState
impl Eq for ActiveConnectionState
impl StructuralPartialEq for ActiveConnectionState
Auto Trait Implementations§
impl Freeze for ActiveConnectionState
impl RefUnwindSafe for ActiveConnectionState
impl Send for ActiveConnectionState
impl Sync for ActiveConnectionState
impl Unpin for ActiveConnectionState
impl UnsafeUnpin for ActiveConnectionState
impl UnwindSafe for ActiveConnectionState
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