#[non_exhaustive]
pub enum DecodeError {
Show 26 variants Underflow { backtrace: Backtrace, }, ExtraData { backtrace: Backtrace, }, InvalidUtf8 { backtrace: Backtrace, source: Utf8Error, }, AuthStatusInvalid { backtrace: Backtrace, auth_status: u32, }, InvalidTransactionState { backtrace: Backtrace, transaction_state: u8, }, InvalidIoFormat { backtrace: Backtrace, io_format: u8, }, InvalidCardinality { backtrace: Backtrace, cardinality: u8, }, InvalidAspect { backtrace: Backtrace, aspect: u8, }, InvalidTypeDescriptor { backtrace: Backtrace, descriptor: u8, }, InvalidUuid { backtrace: Backtrace, source: Error, }, NonZeroReservedBytes { backtrace: Backtrace, }, ObjectSizeMismatch { backtrace: Backtrace, }, TupleSizeMismatch { backtrace: Backtrace, }, InvalidMarker { backtrace: Backtrace, }, InvalidSetShape { backtrace: Backtrace, }, InvalidArrayShape { backtrace: Backtrace, }, InvalidArrayOrSetShape { backtrace: Backtrace, }, BadSign { backtrace: Backtrace, }, InvalidBool { backtrace: Backtrace, }, InvalidDate { backtrace: Backtrace, }, InvalidJsonFormat { backtrace: Backtrace, }, ExtraEnumValue { backtrace: Backtrace, }, TooManyDescriptors { backtrace: Backtrace, index: usize, }, UuidNotFound { backtrace: Backtrace, uuid: Uuid, }, DecodeValue { backtrace: Backtrace, source: Box<dyn Error + Send + Sync>, }, MissingRequiredElement { backtrace: Backtrace, },
}

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

Underflow

Fields

backtrace: Backtrace

ExtraData

Fields

backtrace: Backtrace

InvalidUtf8

Fields

backtrace: Backtrace
source: Utf8Error

AuthStatusInvalid

Fields

backtrace: Backtrace
auth_status: u32

InvalidTransactionState

Fields

backtrace: Backtrace
transaction_state: u8

InvalidIoFormat

Fields

backtrace: Backtrace
io_format: u8

InvalidCardinality

Fields

backtrace: Backtrace
cardinality: u8

InvalidAspect

Fields

backtrace: Backtrace
aspect: u8

InvalidTypeDescriptor

Fields

backtrace: Backtrace
descriptor: u8

InvalidUuid

Fields

backtrace: Backtrace
source: Error

NonZeroReservedBytes

Fields

backtrace: Backtrace

ObjectSizeMismatch

Fields

backtrace: Backtrace

TupleSizeMismatch

Fields

backtrace: Backtrace

InvalidMarker

Fields

backtrace: Backtrace

InvalidSetShape

Fields

backtrace: Backtrace

InvalidArrayShape

Fields

backtrace: Backtrace

InvalidArrayOrSetShape

Fields

backtrace: Backtrace

BadSign

Fields

backtrace: Backtrace

InvalidBool

Fields

backtrace: Backtrace

InvalidDate

Fields

backtrace: Backtrace

InvalidJsonFormat

Fields

backtrace: Backtrace

ExtraEnumValue

Fields

backtrace: Backtrace

TooManyDescriptors

Fields

backtrace: Backtrace
index: usize

UuidNotFound

Fields

backtrace: Backtrace
uuid: Uuid

DecodeValue

Fields

backtrace: Backtrace
source: Box<dyn Error + Send + Sync>

MissingRequiredElement

Fields

backtrace: Backtrace

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. 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

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

Returns a Backtrace that may be printed.

Returns an iterator for traversing the chain of errors, starting with the current error and continuing with recursive calls to Error::source. Read more

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

The underlying error

Combine the information to produce the error

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

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.