#[non_exhaustive]pub enum DBusError {
Show 45 variants
Failed,
NoMemory,
ServiceUnknown,
NameHasNoOwner,
NoReply,
IoError,
BadAddress,
NotSupported,
LimitsExceeded,
AccessDenied,
AuthFailed,
NoServer,
Timeout,
NoNetwork,
AddressInUse,
Disconnected,
InvalidArgs,
FileNotFound,
FileExists,
UnknownMethod,
TimedOut,
MatchRuleNotFound,
MatchRuleInvalid,
SpawnExecFailed,
SpawnForkFailed,
SpawnChildExited,
SpawnChildSignaled,
SpawnFailed,
SpawnSetupFailed,
SpawnConfigInvalid,
SpawnServiceInvalid,
SpawnServiceNotFound,
SpawnPermissionsInvalid,
SpawnFileInvalid,
SpawnNoMemory,
UnixProcessIdUnknown,
InvalidSignature,
InvalidFileContent,
SelinuxSecurityContextUnknown,
AdtAuditDataUnknown,
ObjectPathInUse,
UnknownObject,
UnknownInterface,
UnknownProperty,
PropertyReadOnly,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Failed
NoMemory
ServiceUnknown
NameHasNoOwner
NoReply
IoError
BadAddress
NotSupported
LimitsExceeded
AccessDenied
AuthFailed
NoServer
Timeout
NoNetwork
AddressInUse
Disconnected
InvalidArgs
FileNotFound
FileExists
UnknownMethod
TimedOut
MatchRuleNotFound
MatchRuleInvalid
SpawnExecFailed
SpawnForkFailed
SpawnChildExited
SpawnChildSignaled
SpawnFailed
SpawnSetupFailed
SpawnConfigInvalid
SpawnServiceInvalid
SpawnServiceNotFound
SpawnPermissionsInvalid
SpawnFileInvalid
SpawnNoMemory
UnixProcessIdUnknown
InvalidSignature
InvalidFileContent
SelinuxSecurityContextUnknown
AdtAuditDataUnknown
ObjectPathInUse
UnknownObject
UnknownInterface
UnknownProperty
PropertyReadOnly
Implementations§
Source§impl DBusError
impl DBusError
pub fn encode_gerror(error: &Error) -> GString
pub fn remote_error(error: &Error) -> Option<GString>
pub fn is_remote_error(error: &Error) -> bool
pub fn new_for_dbus_error( dbus_error_name: &str, dbus_error_message: &str, ) -> Error
pub fn register_error( error_domain: Quark, error_code: i32, dbus_error_name: &str, ) -> bool
pub fn strip_remote_error(error: &mut Error) -> bool
pub fn unregister_error( error_domain: Quark, error_code: i32, dbus_error_name: &str, ) -> bool
Trait Implementations§
Source§impl ErrorDomain for DBusError
impl ErrorDomain for DBusError
Source§impl<'a> FromValue<'a> for DBusError
impl<'a> FromValue<'a> for DBusError
Source§type Checker = GenericValueTypeChecker<DBusError>
type Checker = GenericValueTypeChecker<DBusError>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value. Read moreSource§impl HasParamSpec for DBusError
impl HasParamSpec for DBusError
Source§impl Ord for DBusError
impl Ord for DBusError
Source§impl PartialOrd for DBusError
impl PartialOrd for DBusError
Source§impl StaticType for DBusError
impl StaticType for DBusError
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Copy for DBusError
impl Eq for DBusError
impl StructuralPartialEq for DBusError
Auto Trait Implementations§
impl Freeze for DBusError
impl RefUnwindSafe for DBusError
impl Send for DBusError
impl Sync for DBusError
impl Unpin for DBusError
impl UnwindSafe for DBusError
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
Mutably borrows from an owned value. Read more
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()
Ensures that the type has been registered with the type system.
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.