#[non_exhaustive]pub enum ConnectionError {
Failed,
SettingNotFound,
PropertyNotFound,
PropertyNotSecret,
MissingSetting,
InvalidSetting,
MissingProperty,
InvalidProperty,
}Expand description
Describes errors that may result from operations involving a #NMConnection or its #NMSettings.
These errors may be returned directly from #NMConnection and #NMSetting methods, or may be returned from D-Bus operations (eg on #NMClient or #NMDevice), where they correspond to errors in the “org.freedesktop.NetworkManager.Settings.Connection” namespace.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Failed
unknown or unclassified error
SettingNotFound
the #NMConnection object did not contain the specified #NMSetting object
PropertyNotFound
the #NMConnection did not contain the requested #NMSetting property
PropertyNotSecret
an operation which requires a secret was attempted on a non-secret property
MissingSetting
the #NMConnection object is missing an #NMSetting which is required for its configuration. The error message will always be prefixed with “<setting-name>: “, where “<setting-name>” is the name of the setting that is missing.
InvalidSetting
the #NMConnection object contains an invalid or inappropriate #NMSetting. The error message will always be prefixed with “<setting-name>: “, where “<setting-name>” is the name of the setting that is invalid.
MissingProperty
the #NMConnection object is invalid because it is missing a required property. The error message will always be prefixed with “<setting-name>.<property-name>: “, where “<setting-name>” is the name of the setting with the missing property, and “<property-name>” is the property that is missing.
InvalidProperty
the #NMConnection object is invalid because a property has an invalid value. The error message will always be prefixed with “<setting-name>.<property-name>: “, where “<setting-name>” is the name of the setting with the invalid property, and “<property-name>” is the property that is invalid.
Trait Implementations§
Source§impl Clone for ConnectionError
impl Clone for ConnectionError
Source§fn clone(&self) -> ConnectionError
fn clone(&self) -> ConnectionError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectionError
impl Debug for ConnectionError
Source§impl ErrorDomain for ConnectionError
impl ErrorDomain for ConnectionError
Source§impl From<ConnectionError> for Value
impl From<ConnectionError> for Value
Source§fn from(v: ConnectionError) -> Self
fn from(v: ConnectionError) -> Self
Source§impl<'a> FromValue<'a> for ConnectionError
impl<'a> FromValue<'a> for ConnectionError
Source§type Checker = GenericValueTypeChecker<ConnectionError>
type Checker = GenericValueTypeChecker<ConnectionError>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for ConnectionError
impl HasParamSpec for ConnectionError
type ParamSpec = ParamSpecEnum
Source§type SetValue = ConnectionError
type SetValue = ConnectionError
type BuilderFn = fn(&str, ConnectionError) -> ParamSpecEnumBuilder<'_, ConnectionError>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for ConnectionError
impl Hash for ConnectionError
Source§impl Ord for ConnectionError
impl Ord for ConnectionError
Source§fn cmp(&self, other: &ConnectionError) -> Ordering
fn cmp(&self, other: &ConnectionError) -> 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 ConnectionError
impl PartialEq for ConnectionError
Source§impl PartialOrd for ConnectionError
impl PartialOrd for ConnectionError
Source§impl StaticType for ConnectionError
impl StaticType for ConnectionError
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Source§impl ToValue for ConnectionError
impl ToValue for ConnectionError
Source§impl ValueType for ConnectionError
impl ValueType for ConnectionError
Source§type Type = ConnectionError
type Type = ConnectionError
Type from. Read moreimpl Copy for ConnectionError
impl Eq for ConnectionError
impl StructuralPartialEq for ConnectionError
Auto Trait Implementations§
impl Freeze for ConnectionError
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnwindSafe for ConnectionError
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.