pub enum DecoderError {
ParseError(ParserError),
ExpectedError(String, String),
MissingFieldError(String),
UnknownVariantError(String),
ApplicationError(String),
EOF,
}Variants§
ParseError(ParserError)
ExpectedError(String, String)
MissingFieldError(String)
UnknownVariantError(String)
ApplicationError(String)
EOF
Trait Implementations§
Source§impl Debug for DecoderError
impl Debug for DecoderError
Source§impl Display for DecoderError
impl Display for DecoderError
Source§impl Error for DecoderError
impl Error for DecoderError
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 StdError>
fn cause(&self) -> Option<&dyn StdError>
👎Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
Source§impl From<ParserError> for DecoderError
impl From<ParserError> for DecoderError
Source§fn from(err: ParserError) -> DecoderError
fn from(err: ParserError) -> DecoderError
Converts to this type from the input type.
Source§impl PartialEq for DecoderError
impl PartialEq for DecoderError
Source§fn eq(&self, other: &DecoderError) -> bool
fn eq(&self, other: &DecoderError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecoderError
Auto Trait Implementations§
impl !RefUnwindSafe for DecoderError
impl !UnwindSafe for DecoderError
impl Freeze for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl UnsafeUnpin for DecoderError
Blanket Implementations§
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