#[non_exhaustive]pub enum State {
Unknown,
Asleep,
Disconnected,
Disconnecting,
Connecting,
ConnectedLocal,
ConnectedSite,
ConnectedGlobal,
}Expand description
#NMState values indicate the current overall networking state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown
Networking state is unknown. This indicates a daemon error that makes it unable to reasonably assess the state. In such event the applications are expected to assume Internet connectivity might be present and not disable controls that require network access. The graphical shells may hide the network accessibility indicator altogether since no meaningful status indication can be provided.
Asleep
Networking is not enabled, the system is being suspended or resumed from suspend.
Disconnected
There is no active network connection. The graphical shell should indicate no network connectivity and the applications should not attempt to access the network.
Disconnecting
Network connections are being cleaned up. The applications should tear down their network sessions.
Connecting
A network connection is being started The graphical shell should indicate the network is being connected while the applications should still make no attempts to connect the network.
ConnectedLocal
There is only local IPv4 and/or IPv6 connectivity, but no default route to access the Internet. The graphical shell should indicate no network connectivity.
ConnectedSite
There is only site-wide IPv4 and/or IPv6 connectivity. This means a default route is available, but the Internet connectivity check (see “Connectivity” property) did not succeed. The graphical shell should indicate limited network connectivity.
ConnectedGlobal
There is global IPv4 and/or IPv6 Internet connectivity This means the Internet connectivity check succeeded, the graphical shell should indicate full network connectivity.
Trait Implementations§
Source§impl<'a> FromValue<'a> for State
impl<'a> FromValue<'a> for State
Source§type Checker = GenericValueTypeChecker<State>
type Checker = GenericValueTypeChecker<State>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for State
impl HasParamSpec for State
Source§impl Ord for State
impl Ord for State
Source§impl PartialOrd for State
impl PartialOrd for State
Source§impl StaticType for State
impl StaticType for State
Source§fn static_type() -> Type
fn static_type() -> Type
Self.impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue clone of self.