Struct destream_json::de::Error
source · [−]pub struct Error { /* private fields */ }
Expand description
An error encountered while decoding a JSON stream.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl Error for Error
impl Error for Error
sourcefn custom<T: Display>(msg: T) -> Self
fn custom<T: Display>(msg: T) -> Self
Raised when there is general error when decoding a type. The message should not be capitalized and should not end with a period. Read more
sourcefn invalid_type<U, E>(unexp: U, exp: E) -> Self where
U: Display,
E: Display,
fn invalid_type<U, E>(unexp: U, exp: E) -> Self where
U: Display,
E: Display,
Raised when FromStream
receives a type different from what it was expecting.
sourcefn invalid_value<U, E>(unexp: U, exp: E) -> Self where
U: Display,
E: Display,
fn invalid_value<U, E>(unexp: U, exp: E) -> Self where
U: Display,
E: Display,
Raised when FromStream
receives a value of the right type but that
is wrong for some other reason. Read more
sourcefn invalid_length<E>(len: usize, exp: E) -> Self where
E: Display,
fn invalid_length<E>(len: usize, exp: E) -> Self where
E: Display,
Raised when decoding a sequence or map and the input data contains too many or too few elements. Read more
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
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