#[non_exhaustive]pub enum ConnectivityState {
Unknown,
None,
Portal,
Limited,
Full,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unknown
Network connectivity is unknown. This means the connectivity checks are disabled (e.g. on server installations) or has not run yet. The graphical shell should assume the Internet connection might be available and not present a captive portal window.
None
The host is not connected to any network. There’s no active connection that contains a default route to the internet and thus it makes no sense to even attempt a connectivity check. The graphical shell should use this state to indicate the network connection is unavailable.
Portal
The Internet connection is hijacked by a captive portal gateway. The graphical shell may open a sandboxed web browser window (because the captive portals typically attempt a man-in-the-middle attacks against the https connections) for the purpose of authenticating to a gateway and retrigger the connectivity check with CheckConnectivity() when the browser window is dismissed.
Limited
The host is connected to a network, does not appear to be able to reach the full Internet, but a captive portal has not been detected.
Full
The host is connected to a network, and appears to be able to reach the full Internet.
Trait Implementations§
Source§impl Clone for ConnectivityState
impl Clone for ConnectivityState
Source§fn clone(&self) -> ConnectivityState
fn clone(&self) -> ConnectivityState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectivityState
impl Debug for ConnectivityState
Source§impl From<ConnectivityState> for Value
impl From<ConnectivityState> for Value
Source§fn from(v: ConnectivityState) -> Self
fn from(v: ConnectivityState) -> Self
Source§impl<'a> FromValue<'a> for ConnectivityState
impl<'a> FromValue<'a> for ConnectivityState
Source§type Checker = GenericValueTypeChecker<ConnectivityState>
type Checker = GenericValueTypeChecker<ConnectivityState>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for ConnectivityState
impl HasParamSpec for ConnectivityState
type ParamSpec = ParamSpecEnum
Source§type SetValue = ConnectivityState
type SetValue = ConnectivityState
type BuilderFn = fn(&str, ConnectivityState) -> ParamSpecEnumBuilder<'_, ConnectivityState>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for ConnectivityState
impl Hash for ConnectivityState
Source§impl Ord for ConnectivityState
impl Ord for ConnectivityState
Source§fn cmp(&self, other: &ConnectivityState) -> Ordering
fn cmp(&self, other: &ConnectivityState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ConnectivityState
impl PartialEq for ConnectivityState
Source§impl PartialOrd for ConnectivityState
impl PartialOrd for ConnectivityState
Source§impl StaticType for ConnectivityState
impl StaticType for ConnectivityState
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Source§impl ToValue for ConnectivityState
impl ToValue for ConnectivityState
Source§impl ValueType for ConnectivityState
impl ValueType for ConnectivityState
Source§type Type = ConnectivityState
type Type = ConnectivityState
Type from. Read moreimpl Copy for ConnectivityState
impl Eq for ConnectivityState
impl StructuralPartialEq for ConnectivityState
Auto Trait Implementations§
impl Freeze for ConnectivityState
impl RefUnwindSafe for ConnectivityState
impl Send for ConnectivityState
impl Sync for ConnectivityState
impl Unpin for ConnectivityState
impl UnwindSafe for ConnectivityState
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.