Enum edgedb_protocol::errors::DecodeError[][src]

#[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 of Underflow

backtrace: Backtrace
ExtraData

Fields of ExtraData

backtrace: Backtrace
InvalidUtf8

Fields of InvalidUtf8

backtrace: Backtracesource: Utf8Error
AuthStatusInvalid

Fields of AuthStatusInvalid

backtrace: Backtraceauth_status: u32
InvalidTransactionState

Fields of InvalidTransactionState

backtrace: Backtracetransaction_state: u8
InvalidIoFormat

Fields of InvalidIoFormat

backtrace: Backtraceio_format: u8
InvalidCardinality

Fields of InvalidCardinality

backtrace: Backtracecardinality: u8
InvalidAspect

Fields of InvalidAspect

backtrace: Backtraceaspect: u8
InvalidTypeDescriptor

Fields of InvalidTypeDescriptor

backtrace: Backtracedescriptor: u8
InvalidUuid

Fields of InvalidUuid

backtrace: Backtracesource: Error
NonZeroReservedBytes

Fields of NonZeroReservedBytes

backtrace: Backtrace
ObjectSizeMismatch

Fields of ObjectSizeMismatch

backtrace: Backtrace
TupleSizeMismatch

Fields of TupleSizeMismatch

backtrace: Backtrace
InvalidMarker

Fields of InvalidMarker

backtrace: Backtrace
InvalidSetShape

Fields of InvalidSetShape

backtrace: Backtrace
InvalidArrayShape

Fields of InvalidArrayShape

backtrace: Backtrace
InvalidArrayOrSetShape

Fields of InvalidArrayOrSetShape

backtrace: Backtrace
BadSign

Fields of BadSign

backtrace: Backtrace
InvalidBool

Fields of InvalidBool

backtrace: Backtrace
InvalidDate

Fields of InvalidDate

backtrace: Backtrace
InvalidJsonFormat

Fields of InvalidJsonFormat

backtrace: Backtrace
ExtraEnumValue

Fields of ExtraEnumValue

backtrace: Backtrace
TooManyDescriptors

Fields of TooManyDescriptors

backtrace: Backtraceindex: usize
UuidNotFound

Fields of UuidNotFound

backtrace: Backtraceuuid: Uuid
DecodeValue

Fields of DecodeValue

backtrace: Backtracesource: Box<dyn Error + Send + Sync>
MissingRequiredElement

Fields of MissingRequiredElement

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.

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

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.