Enum zbus::fdo::Error[][src]

pub enum Error {
Show 49 variants ZBus(Error), Failed(String), NoMemory(String), ServiceUnknown(String), NameHasNoOwner(String), NoReply(String), IOError(String), BadAddress(String), NotSupported(String), LimitsExceeded(String), AccessDenied(String), AuthFailed(String), NoServer(String), Timeout(String), NoNetwork(String), AddressInUse(String), Disconnected(String), InvalidArgs(String), FileNotFound(String), FileExists(String), UnknownMethod(String), UnknownObject(String), UnknownInterface(String), UnknownProperty(String), PropertyReadOnly(String), TimedOut(String), MatchRuleNotFound(String), MatchRuleInvalid(String), SpawnExecFailed(String), SpawnForkFailed(String), SpawnChildExited(String), SpawnChildSignaled(String), SpawnFailed(String), SpawnFailedToSetup(String), SpawnConfigInvalid(String), SpawnServiceNotValid(String), SpawnServiceNotFound(String), SpawnPermissionsInvalid(String), SpawnFileInvalid(String), SpawnNoMemory(String), UnixProcessIdUnknown(String), InvalidSignature(String), InvalidFileContent(String), SELinuxSecurityContextUnknown(String), AdtAuditDataUnknown(String), ObjectPathInUse(String), InconsistentMessage(String), InteractiveAuthorizationRequired(String), NotContainer(String),
}
Expand description

Variants

ZBus(Error)

Unknown or fall-through ZBus error.

Tuple Fields of ZBus

0: Error
Failed(String)

A generic error; “something went wrong” - see the error message for more.

Tuple Fields of Failed

0: String
NoMemory(String)

There was not enough memory to complete an operation.

Tuple Fields of NoMemory

0: String
ServiceUnknown(String)

The bus doesn’t know how to launch a service to supply the bus name you wanted.

Tuple Fields of ServiceUnknown

0: String
NameHasNoOwner(String)

The bus name you referenced doesn’t exist (i.e. no application owns it).

Tuple Fields of NameHasNoOwner

0: String
NoReply(String)

No reply to a message expecting one, usually means a timeout occurred.

Tuple Fields of NoReply

0: String
IOError(String)

Something went wrong reading or writing to a socket, for example.

Tuple Fields of IOError

0: String
BadAddress(String)

A D-Bus bus address was malformed.

Tuple Fields of BadAddress

0: String
NotSupported(String)

Requested operation isn’t supported (like ENOSYS on UNIX).

Tuple Fields of NotSupported

0: String
LimitsExceeded(String)

Some limited resource is exhausted.

Tuple Fields of LimitsExceeded

0: String
AccessDenied(String)

Security restrictions don’t allow doing what you’re trying to do.

Tuple Fields of AccessDenied

0: String
AuthFailed(String)

Authentication didn’t work.

Tuple Fields of AuthFailed

0: String
NoServer(String)

Unable to connect to server (probably caused by ECONNREFUSED on a socket).

Tuple Fields of NoServer

0: String
Timeout(String)

Certain timeout errors, possibly ETIMEDOUT on a socket. Note that TimedOut is used for message reply timeouts.

Tuple Fields of Timeout

0: String
NoNetwork(String)

No network access (probably ENETUNREACH on a socket).

Tuple Fields of NoNetwork

0: String
AddressInUse(String)

Can’t bind a socket since its address is in use (i.e. EADDRINUSE).

Tuple Fields of AddressInUse

0: String
Disconnected(String)

The connection is disconnected and you’re trying to use it.

Tuple Fields of Disconnected

0: String
InvalidArgs(String)

Invalid arguments passed to a method call.

Tuple Fields of InvalidArgs

0: String
FileNotFound(String)

Missing file.

Tuple Fields of FileNotFound

0: String
FileExists(String)

Existing file and the operation you’re using does not silently overwrite.

Tuple Fields of FileExists

0: String
UnknownMethod(String)

Method name you invoked isn’t known by the object you invoked it on.

Tuple Fields of UnknownMethod

0: String
UnknownObject(String)

Object you invoked a method on isn’t known.

Tuple Fields of UnknownObject

0: String
UnknownInterface(String)

Interface you invoked a method on isn’t known by the object.

Tuple Fields of UnknownInterface

0: String
UnknownProperty(String)

Property you tried to access isn’t known by the object.

Tuple Fields of UnknownProperty

0: String
PropertyReadOnly(String)

Property you tried to set is read-only.

Tuple Fields of PropertyReadOnly

0: String
TimedOut(String)

Certain timeout errors, e.g. while starting a service.

Tuple Fields of TimedOut

0: String
MatchRuleNotFound(String)

Tried to remove or modify a match rule that didn’t exist.

Tuple Fields of MatchRuleNotFound

0: String
MatchRuleInvalid(String)

The match rule isn’t syntactically valid.

Tuple Fields of MatchRuleInvalid

0: String
SpawnExecFailed(String)

While starting a new process, the exec() call failed.

Tuple Fields of SpawnExecFailed

0: String
SpawnForkFailed(String)

While starting a new process, the fork() call failed.

Tuple Fields of SpawnForkFailed

0: String
SpawnChildExited(String)

While starting a new process, the child exited with a status code.

Tuple Fields of SpawnChildExited

0: String
SpawnChildSignaled(String)

While starting a new process, the child exited on a signal.

Tuple Fields of SpawnChildSignaled

0: String
SpawnFailed(String)

While starting a new process, something went wrong.

Tuple Fields of SpawnFailed

0: String
SpawnFailedToSetup(String)

We failed to setup the environment correctly.

Tuple Fields of SpawnFailedToSetup

0: String
SpawnConfigInvalid(String)

We failed to setup the config parser correctly.

Tuple Fields of SpawnConfigInvalid

0: String
SpawnServiceNotValid(String)

Bus name was not valid.

Tuple Fields of SpawnServiceNotValid

0: String
SpawnServiceNotFound(String)

Service file not found in system-services directory.

Tuple Fields of SpawnServiceNotFound

0: String
SpawnPermissionsInvalid(String)

Permissions are incorrect on the setuid helper.

Tuple Fields of SpawnPermissionsInvalid

0: String
SpawnFileInvalid(String)

Service file invalid (Name, User or Exec missing).

Tuple Fields of SpawnFileInvalid

0: String
SpawnNoMemory(String)

There was not enough memory to complete the operation.

Tuple Fields of SpawnNoMemory

0: String
UnixProcessIdUnknown(String)

Tried to get a UNIX process ID and it wasn’t available.

Tuple Fields of UnixProcessIdUnknown

0: String
InvalidSignature(String)

A type signature is not valid.

Tuple Fields of InvalidSignature

0: String
InvalidFileContent(String)

A file contains invalid syntax or is otherwise broken.

Tuple Fields of InvalidFileContent

0: String
SELinuxSecurityContextUnknown(String)

Asked for SELinux security context and it wasn’t available.

Tuple Fields of SELinuxSecurityContextUnknown

0: String
AdtAuditDataUnknown(String)

Asked for ADT audit data and it wasn’t available.

Tuple Fields of AdtAuditDataUnknown

0: String
ObjectPathInUse(String)

There’s already an object with the requested object path.

Tuple Fields of ObjectPathInUse

0: String
InconsistentMessage(String)

The message meta data does not match the payload. e.g. expected number of file descriptors were not sent over the socket this message was received on.

Tuple Fields of InconsistentMessage

0: String
InteractiveAuthorizationRequired(String)

The message is not allowed without performing interactive authorization, but could have succeeded if an interactive authorization step was allowed.

Tuple Fields of InteractiveAuthorizationRequired

0: String
NotContainer(String)

The connection is not from a container, or the specified container instance does not exist.

Tuple Fields of NotContainer

0: String

Implementations

Trait Implementations

Generate an error reply message for the given method call.

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.