logo

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)

Tuple Fields

0: Error

Unknown or fall-through ZBus error.

Failed(String)

Tuple Fields

0: String

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

NoMemory(String)

Tuple Fields

0: String

There was not enough memory to complete an operation.

ServiceUnknown(String)

Tuple Fields

0: String

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

NameHasNoOwner(String)

Tuple Fields

0: String

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

NoReply(String)

Tuple Fields

0: String

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

IOError(String)

Tuple Fields

0: String

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

BadAddress(String)

Tuple Fields

0: String

A D-Bus bus address was malformed.

NotSupported(String)

Tuple Fields

0: String

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

LimitsExceeded(String)

Tuple Fields

0: String

Some limited resource is exhausted.

AccessDenied(String)

Tuple Fields

0: String

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

AuthFailed(String)

Tuple Fields

0: String

Authentication didn’t work.

NoServer(String)

Tuple Fields

0: String

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

Timeout(String)

Tuple Fields

0: String

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

NoNetwork(String)

Tuple Fields

0: String

No network access (probably ENETUNREACH on a socket).

AddressInUse(String)

Tuple Fields

0: String

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

Disconnected(String)

Tuple Fields

0: String

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

InvalidArgs(String)

Tuple Fields

0: String

Invalid arguments passed to a method call.

FileNotFound(String)

Tuple Fields

0: String

Missing file.

FileExists(String)

Tuple Fields

0: String

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

UnknownMethod(String)

Tuple Fields

0: String

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

UnknownObject(String)

Tuple Fields

0: String

Object you invoked a method on isn’t known.

UnknownInterface(String)

Tuple Fields

0: String

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

UnknownProperty(String)

Tuple Fields

0: String

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

PropertyReadOnly(String)

Tuple Fields

0: String

Property you tried to set is read-only.

TimedOut(String)

Tuple Fields

0: String

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

MatchRuleNotFound(String)

Tuple Fields

0: String

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

MatchRuleInvalid(String)

Tuple Fields

0: String

The match rule isn’t syntactically valid.

SpawnExecFailed(String)

Tuple Fields

0: String

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

SpawnForkFailed(String)

Tuple Fields

0: String

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

SpawnChildExited(String)

Tuple Fields

0: String

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

SpawnChildSignaled(String)

Tuple Fields

0: String

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

SpawnFailed(String)

Tuple Fields

0: String

While starting a new process, something went wrong.

SpawnFailedToSetup(String)

Tuple Fields

0: String

We failed to setup the environment correctly.

SpawnConfigInvalid(String)

Tuple Fields

0: String

We failed to setup the config parser correctly.

SpawnServiceNotValid(String)

Tuple Fields

0: String

Bus name was not valid.

SpawnServiceNotFound(String)

Tuple Fields

0: String

Service file not found in system-services directory.

SpawnPermissionsInvalid(String)

Tuple Fields

0: String

Permissions are incorrect on the setuid helper.

SpawnFileInvalid(String)

Tuple Fields

0: String

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

SpawnNoMemory(String)

Tuple Fields

0: String

There was not enough memory to complete the operation.

UnixProcessIdUnknown(String)

Tuple Fields

0: String

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

InvalidSignature(String)

Tuple Fields

0: String

A type signature is not valid.

InvalidFileContent(String)

Tuple Fields

0: String

A file contains invalid syntax or is otherwise broken.

SELinuxSecurityContextUnknown(String)

Tuple Fields

0: String

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

AdtAuditDataUnknown(String)

Tuple Fields

0: String

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

ObjectPathInUse(String)

Tuple Fields

0: String

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

InconsistentMessage(String)

Tuple Fields

0: 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.

InteractiveAuthorizationRequired(String)

Tuple Fields

0: String

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

NotContainer(String)

Tuple Fields

0: String

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

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.