zbus::fdo

Enum 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§

source§

impl Clone for Error

source§

fn clone(&self) -> Error

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl DBusError for Error

source§

fn name(&self) -> ErrorName<'_>

source§

fn description(&self) -> Option<&str>

source§

fn create_reply(&self, call: &MessageHeader<'_>) -> Result<Message>

Generate an error reply message for the given method call.
source§

impl Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Error> for Error

source§

fn from(val: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(value: Error) -> Error

Converts to this type from the input type.
source§

impl PartialEq for Error

source§

fn eq(&self, other: &Error) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same for T

source§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more