Struct destream_json::de::Error [−][src]
pub struct Error { /* fields omitted */ }
An error encountered while decoding a JSON stream.
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl Error for Error
[src]
impl Error for Error
[src]fn custom<T: Display>(msg: T) -> Self
[src]
fn custom<T: Display>(msg: T) -> Self
[src]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
fn invalid_type<U, E>(unexp: U, exp: E) -> Self where
E: Display,
U: Display,
[src]
fn invalid_type<U, E>(unexp: U, exp: E) -> Self where
E: Display,
U: Display,
[src]Raised when FromStream
receives a type different from what it was expecting.
fn invalid_value<U, E>(unexp: U, exp: E) -> Self where
E: Display,
U: Display,
[src]
fn invalid_value<U, E>(unexp: U, exp: E) -> Self where
E: Display,
U: Display,
[src]Raised when FromStream
receives a value of the right type but that
is wrong for some other reason. Read more
fn invalid_length<E>(len: usize, exp: E) -> Self where
E: Display,
[src]
fn invalid_length<E>(len: usize, exp: E) -> Self where
E: Display,
[src]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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more