Enum zbus::Error[][src]

pub enum Error {
Show 13 variants InterfaceNotFound, Address(String), Io(Error), Message(MessageError), Variant(VariantError), Handshake(String), InvalidReply, MethodError(StringOption<String>, Message), InvalidGUID, Unsupported, NoTLSConnection, NoTLSNode, FDO(Box<Error>),
}
Expand description

The error type for zbus.

The various errors that can be reported by this crate.

Variants

InterfaceNotFound

Interface not found

Address(String)

Invalid D-Bus address.

Tuple Fields of Address

0: String
Io(Error)

An I/O error.

Tuple Fields of Io

0: Error
Message(MessageError)

Message parsing error.

Tuple Fields of Message

0: MessageError
Variant(VariantError)

A zvariant error.

Tuple Fields of Variant

0: VariantError
Handshake(String)

Initial handshake error.

Tuple Fields of Handshake

0: String
InvalidReply

Unexpected or incorrect reply.

MethodError(StringOption<String>, Message)

A D-Bus method error reply.

Tuple Fields of MethodError

0: String1: Option<String>2: Message
InvalidGUID

Invalid D-Bus GUID.

Unsupported

Unsupported function, or support currently lacking.

NoTLSConnection
👎 Deprecated since 1.1.2:

No longer returned by any of our API

Thread-local connection is not set.

NoTLSNode
👎 Deprecated since 1.1.2:

No longer returned by any of our API

Thread-local node is not set.

FDO(Box<Error>)

A fdo::Error tranformed into Error.

Tuple Fields of FDO

0: Box<Error>

Trait Implementations

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.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.