Enum rustc_serialize::json::DecoderError
source · 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
This method 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 Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl !UnwindSafe 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