#[non_exhaustive]pub enum VpnPluginError {
Failed,
StartingInProgress,
AlreadyStarted,
StoppingInProgress,
AlreadyStopped,
WrongState,
BadArguments,
LaunchFailed,
InvalidConnection,
InteractiveNotSupported,
}Expand description
Returned by the VPN service plugin to indicate errors. These codes correspond to errors in the “org.freedesktop.NetworkManager.VPN.Error” namespace.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Failed
unknown or unclassified error
StartingInProgress
the plugin is already starting, and another connect request was received
AlreadyStarted
the plugin is already connected, and another connect request was received
StoppingInProgress
the plugin is already stopping, and another stop request was received
AlreadyStopped
the plugin is already stopped, and another disconnect request was received
WrongState
the operation could not be performed in this state
BadArguments
the operation could not be performed as the request contained malformed arguments, or arguments of unexpected type. Usually means that one of the VPN setting data items or secrets was not of the expected type (ie int, string, bool, etc).
LaunchFailed
a child process failed to launch
InvalidConnection
the operation could not be performed because the connection was invalid. Usually means that the connection’s VPN setting was missing some required data item or secret.
InteractiveNotSupported
the operation could not be performed as the plugin does not support interactive operations, such as ConnectInteractive() or NewSecrets()
Trait Implementations§
Source§impl Clone for VpnPluginError
impl Clone for VpnPluginError
Source§fn clone(&self) -> VpnPluginError
fn clone(&self) -> VpnPluginError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VpnPluginError
impl Debug for VpnPluginError
Source§impl ErrorDomain for VpnPluginError
impl ErrorDomain for VpnPluginError
Source§impl From<VpnPluginError> for Value
impl From<VpnPluginError> for Value
Source§fn from(v: VpnPluginError) -> Self
fn from(v: VpnPluginError) -> Self
Source§impl<'a> FromValue<'a> for VpnPluginError
impl<'a> FromValue<'a> for VpnPluginError
Source§type Checker = GenericValueTypeChecker<VpnPluginError>
type Checker = GenericValueTypeChecker<VpnPluginError>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for VpnPluginError
impl HasParamSpec for VpnPluginError
type ParamSpec = ParamSpecEnum
Source§type SetValue = VpnPluginError
type SetValue = VpnPluginError
type BuilderFn = fn(&str, VpnPluginError) -> ParamSpecEnumBuilder<'_, VpnPluginError>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for VpnPluginError
impl Hash for VpnPluginError
Source§impl Ord for VpnPluginError
impl Ord for VpnPluginError
Source§fn cmp(&self, other: &VpnPluginError) -> Ordering
fn cmp(&self, other: &VpnPluginError) -> 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 VpnPluginError
impl PartialEq for VpnPluginError
Source§impl PartialOrd for VpnPluginError
impl PartialOrd for VpnPluginError
Source§impl StaticType for VpnPluginError
impl StaticType for VpnPluginError
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Source§impl ToValue for VpnPluginError
impl ToValue for VpnPluginError
Source§impl ValueType for VpnPluginError
impl ValueType for VpnPluginError
Source§type Type = VpnPluginError
type Type = VpnPluginError
Type from. Read moreimpl Copy for VpnPluginError
impl Eq for VpnPluginError
impl StructuralPartialEq for VpnPluginError
Auto Trait Implementations§
impl Freeze for VpnPluginError
impl RefUnwindSafe for VpnPluginError
impl Send for VpnPluginError
impl Sync for VpnPluginError
impl Unpin for VpnPluginError
impl UnwindSafe for VpnPluginError
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.