#[non_exhaustive]pub enum ManagerError {
Show 14 variants
Failed,
PermissionDenied,
UnknownConnection,
UnknownDevice,
ConnectionNotAvailable,
ConnectionNotActive,
ConnectionAlreadyActive,
DependencyFailed,
AlreadyAsleepOrAwake,
AlreadyEnabledOrDisabled,
UnknownLogLevel,
UnknownLogDomain,
InvalidArguments,
MissingPlugin,
}Expand description
Errors related to the main “network management” interface of NetworkManager. These may be returned from #NMClient methods that invoke D-Bus operations on the “org.freedesktop.NetworkManager” interface, and correspond to D-Bus errors in that namespace.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Failed
unknown or unclassified error
PermissionDenied
Permission denied.
UnknownConnection
The requested connection is not known.
UnknownDevice
The requested device is not known.
ConnectionNotAvailable
The requested connection cannot be activated at this time.
ConnectionNotActive
The request could not be completed because a required connection is not active.
ConnectionAlreadyActive
The connection to be activated was already active on another device.
DependencyFailed
An activation request failed due to a dependency being unavailable.
AlreadyAsleepOrAwake
The manager is already in the requested sleep/wake state.
AlreadyEnabledOrDisabled
The network is already enabled/disabled.
UnknownLogLevel
Unknown log level in SetLogging
UnknownLogDomain
Unknown log domain in SetLogging
InvalidArguments
Invalid arguments for D-Bus request
MissingPlugin
A plug-in was needed to complete the activation but is not available.
Trait Implementations§
Source§impl Clone for ManagerError
impl Clone for ManagerError
Source§fn clone(&self) -> ManagerError
fn clone(&self) -> ManagerError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ManagerError
impl Debug for ManagerError
Source§impl ErrorDomain for ManagerError
impl ErrorDomain for ManagerError
Source§impl From<ManagerError> for Value
impl From<ManagerError> for Value
Source§fn from(v: ManagerError) -> Self
fn from(v: ManagerError) -> Self
Source§impl<'a> FromValue<'a> for ManagerError
impl<'a> FromValue<'a> for ManagerError
Source§type Checker = GenericValueTypeChecker<ManagerError>
type Checker = GenericValueTypeChecker<ManagerError>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for ManagerError
impl HasParamSpec for ManagerError
type ParamSpec = ParamSpecEnum
Source§type SetValue = ManagerError
type SetValue = ManagerError
type BuilderFn = fn(&str, ManagerError) -> ParamSpecEnumBuilder<'_, ManagerError>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for ManagerError
impl Hash for ManagerError
Source§impl Ord for ManagerError
impl Ord for ManagerError
Source§fn cmp(&self, other: &ManagerError) -> Ordering
fn cmp(&self, other: &ManagerError) -> 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 ManagerError
impl PartialEq for ManagerError
Source§impl PartialOrd for ManagerError
impl PartialOrd for ManagerError
Source§impl StaticType for ManagerError
impl StaticType for ManagerError
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Source§impl ToValue for ManagerError
impl ToValue for ManagerError
Source§impl ValueType for ManagerError
impl ValueType for ManagerError
Source§type Type = ManagerError
type Type = ManagerError
Type from. Read moreimpl Copy for ManagerError
impl Eq for ManagerError
impl StructuralPartialEq for ManagerError
Auto Trait Implementations§
impl Freeze for ManagerError
impl RefUnwindSafe for ManagerError
impl Send for ManagerError
impl Sync for ManagerError
impl Unpin for ManagerError
impl UnwindSafe for ManagerError
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.