Enum edgedb_protocol::errors::DecodeError
source · #[non_exhaustive]pub enum DecodeError {
Show 29 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,
},
InvalidCapabilities {
backtrace: Backtrace,
capabilities: u64,
},
InvalidCompilationFlags {
backtrace: Backtrace,
compilation_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,
},
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,
},
}
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
InvalidCapabilities
InvalidCompilationFlags
InvalidAspect
InvalidTypeDescriptor
InvalidUuid
NonZeroReservedBytes
ObjectSizeMismatch
TupleSizeMismatch
InvalidMarker
InvalidSetShape
InvalidArrayShape
InvalidArrayOrSetShape
BadSign
InvalidBool
InvalidDate
InvalidJsonFormat
ExtraEnumValue
TooManyDescriptors
InvalidIndex
UuidNotFound
DecodeValue
MissingRequiredElement
Trait Implementations§
source§impl Debug for DecodeError
impl Debug for DecodeError
source§impl Display for DecodeError
impl Display for DecodeError
source§impl Error for DecodeErrorwhere
Self: Debug + Display,
impl Error for DecodeErrorwhere Self: Debug + Display,
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>where
DecodeError: Error + ErrorCompat,
__T0: Into<u32>,
impl<__T0> IntoError<DecodeError> for AuthStatusInvalid<__T0>where DecodeError: Error + ErrorCompat, __T0: Into<u32>,
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 BadSignwhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for BadSignwhere DecodeError: Error + ErrorCompat,
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 DecodeValuewhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for DecodeValuewhere DecodeError: Error + ErrorCompat,
source§impl IntoError<DecodeError> for ExtraDatawhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for ExtraDatawhere DecodeError: Error + ErrorCompat,
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 ExtraEnumValuewhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for ExtraEnumValuewhere DecodeError: Error + ErrorCompat,
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 InvalidArrayOrSetShapewhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidArrayOrSetShapewhere DecodeError: Error + ErrorCompat,
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 InvalidArrayShapewhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidArrayShapewhere DecodeError: Error + ErrorCompat,
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>where
DecodeError: Error + ErrorCompat,
__T0: Into<u8>,
impl<__T0> IntoError<DecodeError> for InvalidAspect<__T0>where DecodeError: Error + ErrorCompat, __T0: Into<u8>,
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 InvalidBoolwhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidBoolwhere DecodeError: Error + ErrorCompat,
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>where
DecodeError: Error + ErrorCompat,
__T0: Into<u64>,
impl<__T0> IntoError<DecodeError> for InvalidCapabilities<__T0>where DecodeError: Error + ErrorCompat, __T0: Into<u64>,
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>where
DecodeError: Error + ErrorCompat,
__T0: Into<u8>,
impl<__T0> IntoError<DecodeError> for InvalidCardinality<__T0>where DecodeError: Error + ErrorCompat, __T0: Into<u8>,
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>where
DecodeError: Error + ErrorCompat,
__T0: Into<u64>,
impl<__T0> IntoError<DecodeError> for InvalidCompilationFlags<__T0>where DecodeError: Error + ErrorCompat, __T0: Into<u64>,
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 InvalidDatewhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidDatewhere DecodeError: Error + ErrorCompat,
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>where
DecodeError: Error + ErrorCompat,
__T0: Into<usize>,
impl<__T0> IntoError<DecodeError> for InvalidIndex<__T0>where DecodeError: Error + ErrorCompat, __T0: Into<usize>,
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>where
DecodeError: Error + ErrorCompat,
__T0: Into<u8>,
impl<__T0> IntoError<DecodeError> for InvalidIoFormat<__T0>where DecodeError: Error + ErrorCompat, __T0: Into<u8>,
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 InvalidJsonFormatwhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidJsonFormatwhere DecodeError: Error + ErrorCompat,
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 InvalidMarkerwhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidMarkerwhere DecodeError: Error + ErrorCompat,
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 InvalidSetShapewhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidSetShapewhere DecodeError: Error + ErrorCompat,
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>where
DecodeError: Error + ErrorCompat,
__T0: Into<u8>,
impl<__T0> IntoError<DecodeError> for InvalidTransactionState<__T0>where DecodeError: Error + ErrorCompat, __T0: Into<u8>,
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>where
DecodeError: Error + ErrorCompat,
__T0: Into<u8>,
impl<__T0> IntoError<DecodeError> for InvalidTypeDescriptor<__T0>where DecodeError: Error + ErrorCompat, __T0: Into<u8>,
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 InvalidUtf8where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidUtf8where DecodeError: Error + ErrorCompat,
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 InvalidUuidwhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidUuidwhere DecodeError: Error + ErrorCompat,
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 MissingRequiredElementwhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for MissingRequiredElementwhere DecodeError: Error + ErrorCompat,
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 NonZeroReservedByteswhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for NonZeroReservedByteswhere DecodeError: Error + ErrorCompat,
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 ObjectSizeMismatchwhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for ObjectSizeMismatchwhere DecodeError: Error + ErrorCompat,
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>where
DecodeError: Error + ErrorCompat,
__T0: Into<usize>,
impl<__T0> IntoError<DecodeError> for TooManyDescriptors<__T0>where DecodeError: Error + ErrorCompat, __T0: Into<usize>,
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 TupleSizeMismatchwhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for TupleSizeMismatchwhere DecodeError: Error + ErrorCompat,
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 Underflowwhere
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for Underflowwhere DecodeError: Error + ErrorCompat,
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>where
DecodeError: Error + ErrorCompat,
__T0: Into<Uuid>,
impl<__T0> IntoError<DecodeError> for UuidNotFound<__T0>where DecodeError: Error + ErrorCompat, __T0: Into<Uuid>,
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 !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