Enum edgedb_protocol::errors::EncodeError
source · #[non_exhaustive]pub enum EncodeError {
Show 18 variants
MessageTooLong {
backtrace: Backtrace,
},
StringTooLong {
backtrace: Backtrace,
},
TooManyExtensions {
backtrace: Backtrace,
},
TooManyHeaders {
backtrace: Backtrace,
},
TooManyParams {
backtrace: Backtrace,
},
TooManyAttributes {
backtrace: Backtrace,
},
TooManyMethods {
backtrace: Backtrace,
},
TooManyElements {
backtrace: Backtrace,
},
ElementTooLong {
backtrace: Backtrace,
},
ArrayTooLong {
backtrace: Backtrace,
},
BigIntTooLong {
backtrace: Backtrace,
},
DecimalTooLong {
backtrace: Backtrace,
},
UnknownMessageCantBeEncoded {
backtrace: Backtrace,
},
InvalidValue {
backtrace: Backtrace,
value_type: &'static str,
codec: &'static str,
},
ObjectShapeMismatch {
backtrace: Backtrace,
},
DatetimeRange {
backtrace: Backtrace,
},
TupleShapeMismatch {
backtrace: Backtrace,
},
MissingEnumValue {
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.
MessageTooLong
StringTooLong
TooManyExtensions
TooManyHeaders
TooManyParams
TooManyAttributes
TooManyMethods
TooManyElements
ElementTooLong
ArrayTooLong
BigIntTooLong
DecimalTooLong
UnknownMessageCantBeEncoded
InvalidValue
ObjectShapeMismatch
DatetimeRange
TupleShapeMismatch
MissingEnumValue
Trait Implementations§
source§impl Debug for EncodeError
impl Debug for EncodeError
source§impl Display for EncodeError
impl Display for EncodeError
source§impl Error for EncodeError
impl Error for EncodeError
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 EncodeError
impl ErrorCompat for EncodeError
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 moreAuto Trait Implementations§
impl !Freeze for EncodeError
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnwindSafe for EncodeError
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