#[non_exhaustive]pub enum SettingsError {
Failed,
PermissionDenied,
NotSupported,
InvalidConnection,
ReadOnlyConnection,
UuidExists,
InvalidHostname,
InvalidArguments,
VersionIdMismatch,
NotSupportedByPlugin,
}Expand description
Errors related to the settings/persistent configuration interface of NetworkManager.
These may be returned from #NMClient methods that invoke D-Bus operations on the “org.freedesktop.NetworkManager.Settings” 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
NotSupported
the requested operation is not supported by any active settings backend
InvalidConnection
the connection was invalid
ReadOnlyConnection
attempted to modify a read-only connection
UuidExists
a connection with that UUID already exists
InvalidHostname
attempted to set an invalid hostname
InvalidArguments
invalid arguments
VersionIdMismatch
The profile’s VersionId mismatched and the update is rejected. See the “version-id” argument to Update2() method. Since 1.44.
NotSupportedByPlugin
the requested operation is not supported by the settings plugin currently in use for the specified object. Since: 1.44.
Trait Implementations§
Source§impl Clone for SettingsError
impl Clone for SettingsError
Source§fn clone(&self) -> SettingsError
fn clone(&self) -> SettingsError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SettingsError
impl Debug for SettingsError
Source§impl ErrorDomain for SettingsError
impl ErrorDomain for SettingsError
Source§impl From<SettingsError> for Value
impl From<SettingsError> for Value
Source§fn from(v: SettingsError) -> Self
fn from(v: SettingsError) -> Self
Source§impl<'a> FromValue<'a> for SettingsError
impl<'a> FromValue<'a> for SettingsError
Source§type Checker = GenericValueTypeChecker<SettingsError>
type Checker = GenericValueTypeChecker<SettingsError>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for SettingsError
impl HasParamSpec for SettingsError
type ParamSpec = ParamSpecEnum
Source§type SetValue = SettingsError
type SetValue = SettingsError
type BuilderFn = fn(&str, SettingsError) -> ParamSpecEnumBuilder<'_, SettingsError>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for SettingsError
impl Hash for SettingsError
Source§impl Ord for SettingsError
impl Ord for SettingsError
Source§fn cmp(&self, other: &SettingsError) -> Ordering
fn cmp(&self, other: &SettingsError) -> 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 SettingsError
impl PartialEq for SettingsError
Source§impl PartialOrd for SettingsError
impl PartialOrd for SettingsError
Source§impl StaticType for SettingsError
impl StaticType for SettingsError
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Source§impl ToValue for SettingsError
impl ToValue for SettingsError
Source§impl ValueType for SettingsError
impl ValueType for SettingsError
Source§type Type = SettingsError
type Type = SettingsError
Type from. Read moreimpl Copy for SettingsError
impl Eq for SettingsError
impl StructuralPartialEq for SettingsError
Auto Trait Implementations§
impl Freeze for SettingsError
impl RefUnwindSafe for SettingsError
impl Send for SettingsError
impl Sync for SettingsError
impl Unpin for SettingsError
impl UnwindSafe for SettingsError
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.