Enum zbus::fdo::Error

source ·
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.

§

Failed(String)

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

§

NoMemory(String)

There was not enough memory to complete an operation.

§

ServiceUnknown(String)

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

§

NameHasNoOwner(String)

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

§

NoReply(String)

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

§

IOError(String)

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

§

BadAddress(String)

A D-Bus bus address was malformed.

§

NotSupported(String)

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

§

LimitsExceeded(String)

Some limited resource is exhausted.

§

AccessDenied(String)

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

§

AuthFailed(String)

Authentication didn’t work.

§

NoServer(String)

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

§

Timeout(String)

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

§

NoNetwork(String)

No network access (probably ENETUNREACH on a socket).

§

AddressInUse(String)

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

§

Disconnected(String)

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

§

InvalidArgs(String)

Invalid arguments passed to a method call.

§

FileNotFound(String)

Missing file.

§

FileExists(String)

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

§

UnknownMethod(String)

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

§

UnknownObject(String)

Object you invoked a method on isn’t known.

§

UnknownInterface(String)

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

§

UnknownProperty(String)

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

§

PropertyReadOnly(String)

Property you tried to set is read-only.

§

TimedOut(String)

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

§

MatchRuleNotFound(String)

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

§

MatchRuleInvalid(String)

The match rule isn’t syntactically valid.

§

SpawnExecFailed(String)

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

§

SpawnForkFailed(String)

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

§

SpawnChildExited(String)

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

§

SpawnChildSignaled(String)

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

§

SpawnFailed(String)

While starting a new process, something went wrong.

§

SpawnFailedToSetup(String)

We failed to setup the environment correctly.

§

SpawnConfigInvalid(String)

We failed to setup the config parser correctly.

§

SpawnServiceNotValid(String)

Bus name was not valid.

§

SpawnServiceNotFound(String)

Service file not found in system-services directory.

§

SpawnPermissionsInvalid(String)

Permissions are incorrect on the setuid helper.

§

SpawnFileInvalid(String)

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

§

SpawnNoMemory(String)

There was not enough memory to complete the operation.

§

UnixProcessIdUnknown(String)

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

§

InvalidSignature(String)

A type signature is not valid.

§

InvalidFileContent(String)

A file contains invalid syntax or is otherwise broken.

§

SELinuxSecurityContextUnknown(String)

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

§

AdtAuditDataUnknown(String)

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

§

ObjectPathInUse(String)

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

§

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.

§

InteractiveAuthorizationRequired(String)

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

§

NotContainer(String)

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

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
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
👎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
🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
Converts to this type from the input type.
Converts to this type from the input type.
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more