#[non_exhaustive]pub enum VpnConnectionState {
Unknown,
Prepare,
NeedAuth,
Connect,
IpConfigGet,
Activated,
Failed,
Disconnected,
}Expand description
VPN connection states
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
The state of the VPN connection is unknown.
Prepare
The VPN connection is preparing to connect.
NeedAuth
The VPN connection needs authorization credentials.
Connect
The VPN connection is being established.
IpConfigGet
The VPN connection is getting an IP address.
Activated
The VPN connection is active.
Failed
The VPN connection failed.
Disconnected
The VPN connection is disconnected.
Trait Implementations§
Source§impl Clone for VpnConnectionState
impl Clone for VpnConnectionState
Source§fn clone(&self) -> VpnConnectionState
fn clone(&self) -> VpnConnectionState
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 VpnConnectionState
impl Debug for VpnConnectionState
Source§impl From<VpnConnectionState> for Value
impl From<VpnConnectionState> for Value
Source§fn from(v: VpnConnectionState) -> Self
fn from(v: VpnConnectionState) -> Self
Converts to this type from the input type.
Source§impl<'a> FromValue<'a> for VpnConnectionState
impl<'a> FromValue<'a> for VpnConnectionState
Source§type Checker = GenericValueTypeChecker<VpnConnectionState>
type Checker = GenericValueTypeChecker<VpnConnectionState>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl HasParamSpec for VpnConnectionState
impl HasParamSpec for VpnConnectionState
type ParamSpec = ParamSpecEnum
Source§type SetValue = VpnConnectionState
type SetValue = VpnConnectionState
Preferred value to be used as setter for the associated ParamSpec.
type BuilderFn = fn(&str, VpnConnectionState) -> ParamSpecEnumBuilder<'_, VpnConnectionState>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for VpnConnectionState
impl Hash for VpnConnectionState
Source§impl Ord for VpnConnectionState
impl Ord for VpnConnectionState
Source§fn cmp(&self, other: &VpnConnectionState) -> Ordering
fn cmp(&self, other: &VpnConnectionState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VpnConnectionState
impl PartialEq for VpnConnectionState
Source§impl PartialOrd for VpnConnectionState
impl PartialOrd for VpnConnectionState
Source§impl StaticType for VpnConnectionState
impl StaticType for VpnConnectionState
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.Source§impl ToValue for VpnConnectionState
impl ToValue for VpnConnectionState
Source§impl ValueType for VpnConnectionState
impl ValueType for VpnConnectionState
Source§type Type = VpnConnectionState
type Type = VpnConnectionState
Type to get the
Type from. Read moreimpl Copy for VpnConnectionState
impl Eq for VpnConnectionState
impl StructuralPartialEq for VpnConnectionState
Auto Trait Implementations§
impl Freeze for VpnConnectionState
impl RefUnwindSafe for VpnConnectionState
impl Send for VpnConnectionState
impl Sync for VpnConnectionState
impl Unpin for VpnConnectionState
impl UnwindSafe for VpnConnectionState
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,
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()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.