Enum edgedb_protocol::errors::DecodeError
source · [−]#[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
Underflow
Fields
backtrace: Backtrace
ExtraData
Fields
backtrace: Backtrace
InvalidUtf8
AuthStatusInvalid
InvalidTransactionState
InvalidIoFormat
InvalidCardinality
InvalidAspect
InvalidTypeDescriptor
InvalidUuid
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
UuidNotFound
DecodeValue
MissingRequiredElement
Fields
backtrace: Backtrace
Trait Implementations
sourceimpl Debug for DecodeError
impl Debug for DecodeError
sourceimpl Display for DecodeError
impl Display for DecodeError
sourceimpl Error for DecodeError where
Self: Debug + Display,
impl Error for DecodeError where
Self: Debug + Display,
sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
replaced by Error::source, which can support downcasting
sourceimpl ErrorCompat for DecodeError
impl ErrorCompat for DecodeError
sourcefn 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 more
sourceimpl IntoError<DecodeError> for Underflow where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for Underflow where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for ExtraData where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for ExtraData where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for NonZeroReservedBytes where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for NonZeroReservedBytes where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for ObjectSizeMismatch where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for ObjectSizeMismatch where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for TupleSizeMismatch where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for TupleSizeMismatch where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for InvalidMarker where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidMarker where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for InvalidSetShape where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidSetShape where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for InvalidArrayShape where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidArrayShape where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for InvalidArrayOrSetShape where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidArrayOrSetShape where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for BadSign where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for BadSign where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for InvalidBool where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidBool where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for InvalidDate where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidDate where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for InvalidUtf8 where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidUtf8 where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for InvalidJsonFormat where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidJsonFormat where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for ExtraEnumValue where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for ExtraEnumValue where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl<__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>,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl<__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>,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for DecodeValue where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for DecodeValue where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for MissingRequiredElement where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for MissingRequiredElement where
DecodeError: Error + ErrorCompat,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl<__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>,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl<__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>,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl<__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>,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl<__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>,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl<__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>,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl<__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>,
sourcefn into_error(self, error: Self::Source) -> DecodeError
fn into_error(self, error: Self::Source) -> DecodeError
Combine the information to produce the error
sourceimpl IntoError<DecodeError> for InvalidUuid where
DecodeError: Error + ErrorCompat,
impl IntoError<DecodeError> for InvalidUuid where
DecodeError: Error + ErrorCompat,
sourcefn 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
sourceimpl<T> AsErrorSource for T where
T: 'static + Error,
impl<T> AsErrorSource for T where
T: 'static + Error,
sourcefn 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. Read more
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more