#[repr(u32)]pub enum NMConnectivityState {
NMConnectivityUnknown = 1,
NMConnectivityNone = 2,
NMConnectivityPortal = 3,
NMConnectivityLimited = 4,
NMConnectivityFull = 5,
}Expand description
NMState values indicate the current overall networking state.
See: https://people.freedesktop.org/~lkundrak/nm-docs/nm-dbus-types.html#NMConnectivityState
Variants§
NMConnectivityUnknown = 1
Network connectivity is unknown.
NMConnectivityNone = 2
The host is not connected to any network.
NMConnectivityPortal = 3
The host is behind a captive portal and cannot reach the full Internet.
NMConnectivityLimited = 4
The host is connected to a network, but does not appear to be able to reach the full Internet.
NMConnectivityFull = 5
The host is connected to a network, and appears to be able to reach the full Internet.
Trait Implementations§
Source§impl Clone for NMConnectivityState
impl Clone for NMConnectivityState
Source§fn clone(&self) -> NMConnectivityState
fn clone(&self) -> NMConnectivityState
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 NMConnectivityState
impl Debug for NMConnectivityState
Source§impl Default for NMConnectivityState
impl Default for NMConnectivityState
Source§fn default() -> NMConnectivityState
fn default() -> NMConnectivityState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NMConnectivityState
impl<'de> Deserialize<'de> for NMConnectivityState
Source§fn deserialize<D>(
deserializer: D,
) -> Result<NMConnectivityState, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<NMConnectivityState, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for NMConnectivityState
impl Serialize for NMConnectivityState
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
Source§impl TryFrom<NMConnectivityState> for OwnedValue
impl TryFrom<NMConnectivityState> for OwnedValue
Auto Trait Implementations§
impl Freeze for NMConnectivityState
impl RefUnwindSafe for NMConnectivityState
impl Send for NMConnectivityState
impl Sync for NMConnectivityState
impl Unpin for NMConnectivityState
impl UnwindSafe for NMConnectivityState
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<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.