#[non_exhaustive]pub enum DecodeError {
Show 34 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,
},
InvalidInputLanguage {
backtrace: Backtrace,
input_language: u8,
},
InvalidCapabilities {
backtrace: Backtrace,
capabilities: u64,
},
InvalidCompilationFlags {
backtrace: Backtrace,
compilation_flags: u64,
},
InvalidDumpFlags {
backtrace: Backtrace,
dump_flags: u64,
},
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,
val: u8,
},
InvalidOptionU32 {
backtrace: Backtrace,
},
InvalidDate {
backtrace: Backtrace,
},
InvalidJsonFormat {
backtrace: Backtrace,
},
ExtraEnumValue {
backtrace: Backtrace,
},
TooManyDescriptors {
backtrace: Backtrace,
index: usize,
},
InvalidIndex {
backtrace: Backtrace,
index: usize,
},
UuidNotFound {
backtrace: Backtrace,
uuid: Uuid,
},
DecodeValue {
backtrace: Backtrace,
source: Box<dyn Error + Send + Sync>,
},
MissingRequiredElement {
backtrace: Backtrace,
},
InvalidAnnotationFormat {
backtrace: Backtrace,
annotation: &'static str,
},
InvalidTypeOperation {
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
ExtraData
InvalidUtf8
AuthStatusInvalid
InvalidTransactionState
InvalidIoFormat
InvalidCardinality
InvalidInputLanguage
InvalidCapabilities
InvalidCompilationFlags
InvalidDumpFlags
InvalidAspect
InvalidTypeDescriptor
InvalidUuid
NonZeroReservedBytes
ObjectSizeMismatch
TupleSizeMismatch
InvalidMarker
InvalidSetShape
InvalidArrayShape
InvalidArrayOrSetShape
BadSign
InvalidBool
InvalidOptionU32
InvalidDate
InvalidJsonFormat
ExtraEnumValue
TooManyDescriptors
InvalidIndex
UuidNotFound
DecodeValue
MissingRequiredElement
InvalidAnnotationFormat
InvalidTypeOperation
Trait Implementations§
Source§impl Debug for DecodeError
impl Debug for DecodeError
Source§impl Display for DecodeError
impl Display for DecodeError
Source§impl Error for DecodeError
impl Error for DecodeError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl ErrorCompat for DecodeError
impl ErrorCompat for DecodeError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source
. Read moreSource§impl<__T0> IntoError<DecodeError> for AuthStatusInvalid<__T0>
impl<__T0> IntoError<DecodeError> for AuthStatusInvalid<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for BadSign
impl IntoError<DecodeError> for BadSign
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for DecodeValue
impl IntoError<DecodeError> for DecodeValue
Source§impl IntoError<DecodeError> for ExtraData
impl IntoError<DecodeError> for ExtraData
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for ExtraEnumValue
impl IntoError<DecodeError> for ExtraEnumValue
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for InvalidAnnotationFormat<__T0>
impl<__T0> IntoError<DecodeError> for InvalidAnnotationFormat<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for InvalidArrayOrSetShape
impl IntoError<DecodeError> for InvalidArrayOrSetShape
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for InvalidArrayShape
impl IntoError<DecodeError> for InvalidArrayShape
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for InvalidAspect<__T0>
impl<__T0> IntoError<DecodeError> for InvalidAspect<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for InvalidBool<__T0>
impl<__T0> IntoError<DecodeError> for InvalidBool<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for InvalidCapabilities<__T0>
impl<__T0> IntoError<DecodeError> for InvalidCapabilities<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for InvalidCardinality<__T0>
impl<__T0> IntoError<DecodeError> for InvalidCardinality<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for InvalidCompilationFlags<__T0>
impl<__T0> IntoError<DecodeError> for InvalidCompilationFlags<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for InvalidDate
impl IntoError<DecodeError> for InvalidDate
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for InvalidDumpFlags<__T0>
impl<__T0> IntoError<DecodeError> for InvalidDumpFlags<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for InvalidIndex<__T0>
impl<__T0> IntoError<DecodeError> for InvalidIndex<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for InvalidInputLanguage<__T0>
impl<__T0> IntoError<DecodeError> for InvalidInputLanguage<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for InvalidIoFormat<__T0>
impl<__T0> IntoError<DecodeError> for InvalidIoFormat<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for InvalidJsonFormat
impl IntoError<DecodeError> for InvalidJsonFormat
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for InvalidMarker
impl IntoError<DecodeError> for InvalidMarker
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for InvalidOptionU32
impl IntoError<DecodeError> for InvalidOptionU32
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for InvalidSetShape
impl IntoError<DecodeError> for InvalidSetShape
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for InvalidTransactionState<__T0>
impl<__T0> IntoError<DecodeError> for InvalidTransactionState<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for InvalidTypeDescriptor<__T0>
impl<__T0> IntoError<DecodeError> for InvalidTypeDescriptor<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for InvalidTypeOperation
impl IntoError<DecodeError> for InvalidTypeOperation
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for InvalidUtf8
impl IntoError<DecodeError> for InvalidUtf8
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for InvalidUuid
impl IntoError<DecodeError> for InvalidUuid
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for MissingRequiredElement
impl IntoError<DecodeError> for MissingRequiredElement
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for NonZeroReservedBytes
impl IntoError<DecodeError> for NonZeroReservedBytes
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for ObjectSizeMismatch
impl IntoError<DecodeError> for ObjectSizeMismatch
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for TooManyDescriptors<__T0>
impl<__T0> IntoError<DecodeError> for TooManyDescriptors<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for TupleSizeMismatch
impl IntoError<DecodeError> for TupleSizeMismatch
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl IntoError<DecodeError> for Underflow
impl IntoError<DecodeError> for Underflow
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Source§impl<__T0> IntoError<DecodeError> for UuidNotFound<__T0>
impl<__T0> IntoError<DecodeError> for UuidNotFound<__T0>
Source§fn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
Auto Trait Implementations§
impl !Freeze for DecodeError
impl !RefUnwindSafe for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl !UnwindSafe for DecodeError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more