Enum dbus_message_parser::decode::DecodeError[][src]

pub enum DecodeError {
Show 25 variants NotEnoughBytes(usizeusize), InvalidBoolean(u32), Utf8Error(Utf8Error), StringNotNull(u8), BusError(BusError), ObjectPathError(ObjectPathError), InterfaceError(InterfaceError), MemberError(MemberError), ErrorError(ErrorError), SignatureError(TypeError), StructError(StructError), Padding(u8), ArrayTooBig(u32), ArrayInvalidLength(usizeusize), Endianness(u8), MessageType(u8), MessageFlags(u8), BodyLengthZero(Vec<Type>), BodySignatureMissing(u32), NotEnoughFds(usizeusize), BodyLength(usizeusize), MessageHeaderError(MessageHeaderError), MessageHeaderFieldsError(MessageHeaderFieldsError), IntegerOverflow(usizeusize), VariantDepth(u8),
}
Expand description

An enum representing all errors, which can occur during the decoding.

Variants

NotEnoughBytes(usizeusize)

Tuple Fields

0: usize
1: usize

InvalidBoolean(u32)

Tuple Fields

0: u32

Utf8Error(Utf8Error)

Tuple Fields

StringNotNull(u8)

Tuple Fields

0: u8

BusError(BusError)

Tuple Fields

ObjectPathError(ObjectPathError)

Tuple Fields

InterfaceError(InterfaceError)

Tuple Fields

MemberError(MemberError)

Tuple Fields

ErrorError(ErrorError)

Tuple Fields

SignatureError(TypeError)

Tuple Fields

StructError(StructError)

Tuple Fields

Padding(u8)

Tuple Fields

0: u8

ArrayTooBig(u32)

Tuple Fields

0: u32

ArrayInvalidLength(usizeusize)

Tuple Fields

0: usize
1: usize

Endianness(u8)

Tuple Fields

0: u8

MessageType(u8)

Tuple Fields

0: u8

MessageFlags(u8)

Tuple Fields

0: u8

BodyLengthZero(Vec<Type>)

Tuple Fields

0: Vec<Type>

BodySignatureMissing(u32)

Tuple Fields

0: u32

NotEnoughFds(usizeusize)

Tuple Fields

0: usize
1: usize

BodyLength(usizeusize)

Tuple Fields

0: usize
1: usize

MessageHeaderError(MessageHeaderError)

Tuple Fields

MessageHeaderFieldsError(MessageHeaderFieldsError)

Tuple Fields

IntegerOverflow(usizeusize)

Tuple Fields

0: usize
1: usize

VariantDepth(u8)

Tuple Fields

0: u8

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.

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.