#[repr(u32)]pub enum NMState {
NMStateUnknown = 0,
NMStateAsleep = 10,
NMStateDisconnected = 20,
NMStateDisconnecting = 30,
NMStateConnecting = 40,
NMStateConnectedLocal = 50,
NMStateConnectedSite = 60,
NMStateConnectedGlobal = 70,
}Expand description
NMState values indicate the current overall networking state.
See: https://people.freedesktop.org/~lkundrak/nm-docs/nm-dbus-types.html#NMState
Variants§
NMStateUnknown = 0
Networking state is unknown
NMStateAsleep = 10
Networking is not enabled
NMStateDisconnected = 20
There is no active network connection
NMStateDisconnecting = 30
Network connections are being cleaned up
NMStateConnecting = 40
A network connection is being started
NMStateConnectedLocal = 50
There is only local IPv4 and/or IPv6 connectivity
NMStateConnectedSite = 60
There is only site-wide IPv4 and/or IPv6 connectivity
NMStateConnectedGlobal = 70
There is global IPv4 and/or IPv6 Internet connectivity
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NMState
impl<'de> Deserialize<'de> for NMState
Source§fn deserialize<D>(
deserializer: D,
) -> Result<NMState, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<NMState, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NMState
impl Serialize for NMState
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for NMState
impl RefUnwindSafe for NMState
impl Send for NMState
impl Sync for NMState
impl Unpin for NMState
impl UnwindSafe for NMState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.