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
Fields
backtrace: Backtrace
StringTooLong
Fields
backtrace: Backtrace
TooManyExtensions
Fields
backtrace: Backtrace
TooManyHeaders
Fields
backtrace: Backtrace
TooManyParams
Fields
backtrace: Backtrace
TooManyAttributes
Fields
backtrace: Backtrace
TooManyMethods
Fields
backtrace: Backtrace
TooManyElements
Fields
backtrace: Backtrace
ElementTooLong
Fields
backtrace: Backtrace
ArrayTooLong
Fields
backtrace: Backtrace
BigIntTooLong
Fields
backtrace: Backtrace
DecimalTooLong
Fields
backtrace: Backtrace
UnknownMessageCantBeEncoded
Fields
backtrace: Backtrace
InvalidValue
ObjectShapeMismatch
Fields
backtrace: Backtrace
DatetimeRange
Fields
backtrace: Backtrace
TupleShapeMismatch
Fields
backtrace: Backtrace
MissingEnumValue
Fields
backtrace: Backtrace
Trait Implementations
sourceimpl Debug for EncodeError
impl Debug for EncodeError
sourceimpl Display for EncodeError
impl Display for EncodeError
sourceimpl Error for EncodeError where
Self: Debug + Display,
impl Error for EncodeError where
Self: Debug + Display,
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl ErrorCompat for EncodeError
impl ErrorCompat for EncodeError
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
Auto Trait Implementations
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnwindSafe for EncodeError
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