#[non_exhaustive]pub enum DeviceError {
Failed,
CreationFailed,
InvalidConnection,
IncompatibleConnection,
NotActive,
NotSoftware,
NotAllowed,
SpecificObjectNotFound,
VersionIdMismatch,
MissingDependencies,
InvalidArgument,
}Expand description
Device-related errors.
These errors may be returned directly from #NMDevice methods, or may be returned from D-Bus operations (where they correspond to errors in the “org.freedesktop.NetworkManager.Device” namespace).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Failed
unknown or unclassified error
CreationFailed
NetworkManager failed to create the device
InvalidConnection
the specified connection is not valid
IncompatibleConnection
the specified connection is not compatible with this device.
NotActive
the device does not have an active connection
NotSoftware
the requested operation is only valid on software devices.
NotAllowed
the requested operation is not allowed at this time.
SpecificObjectNotFound
the “specific object” in the activation request (eg, the #NMAccessPoint or #NMWimaxNsp) was not found.
VersionIdMismatch
the version id did not match.
MissingDependencies
the requested operation could not be completed due to missing dependencies.
InvalidArgument
invalid argument. Since: 1.16.
Trait Implementations§
Source§impl Clone for DeviceError
impl Clone for DeviceError
Source§fn clone(&self) -> DeviceError
fn clone(&self) -> DeviceError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeviceError
impl Debug for DeviceError
Source§impl ErrorDomain for DeviceError
impl ErrorDomain for DeviceError
Source§impl From<DeviceError> for Value
impl From<DeviceError> for Value
Source§fn from(v: DeviceError) -> Self
fn from(v: DeviceError) -> Self
Source§impl<'a> FromValue<'a> for DeviceError
impl<'a> FromValue<'a> for DeviceError
Source§type Checker = GenericValueTypeChecker<DeviceError>
type Checker = GenericValueTypeChecker<DeviceError>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for DeviceError
impl HasParamSpec for DeviceError
type ParamSpec = ParamSpecEnum
Source§type SetValue = DeviceError
type SetValue = DeviceError
type BuilderFn = fn(&str, DeviceError) -> ParamSpecEnumBuilder<'_, DeviceError>
fn param_spec_builder() -> Self::BuilderFn
Source§impl Hash for DeviceError
impl Hash for DeviceError
Source§impl Ord for DeviceError
impl Ord for DeviceError
Source§fn cmp(&self, other: &DeviceError) -> Ordering
fn cmp(&self, other: &DeviceError) -> 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 DeviceError
impl PartialEq for DeviceError
Source§impl PartialOrd for DeviceError
impl PartialOrd for DeviceError
Source§impl StaticType for DeviceError
impl StaticType for DeviceError
Source§fn static_type() -> Type
fn static_type() -> Type
Self.Source§impl ToValue for DeviceError
impl ToValue for DeviceError
Source§impl ValueType for DeviceError
impl ValueType for DeviceError
Source§type Type = DeviceError
type Type = DeviceError
Type from. Read moreimpl Copy for DeviceError
impl Eq for DeviceError
impl StructuralPartialEq for DeviceError
Auto Trait Implementations§
impl Freeze for DeviceError
impl RefUnwindSafe for DeviceError
impl Send for DeviceError
impl Sync for DeviceError
impl Unpin for DeviceError
impl UnwindSafe for DeviceError
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.