pub enum JsonError<'read, R: Read<'read>, S: Stack> {
InternalError,
ReadError(R::Error),
StackError(S::Error),
ReusedDeserializer,
InvalidKey,
InvalidKeyValueDelimiter,
InvalidValue,
NotUtf8,
TrailingComma,
MismatchedDelimiter,
TypeError,
}Expand description
An error incurred when deserializing.
Variants§
InternalError
An unexpected state was reached during deserialization.
ReadError(R::Error)
An error from the reader.
StackError(S::Error)
An error from the stack.
ReusedDeserializer
The deserializer was reused.
InvalidKey
The JSON had an invalid key.
InvalidKeyValueDelimiter
The JSON had an invalid delimiter between the key and value (: expected).
InvalidValue
The JSON had an invalid value.
NotUtf8
The string represented by the JSON serialization was valid yet not UTF-8.
TrailingComma
The JSON had a trailing comma.
MismatchedDelimiter
The JSON had mismatched delimiters between the open and close of the structure.
TypeError
Operation could not be performed given the value’s type.
Trait Implementations§
impl<'read, R: Read<'read>, S: Stack> Copy for JsonError<'read, R, S>
Auto Trait Implementations§
impl<'read, R, S> Freeze for JsonError<'read, R, S>
impl<'read, R, S> RefUnwindSafe for JsonError<'read, R, S>
impl<'read, R, S> Send for JsonError<'read, R, S>
impl<'read, R, S> Sync for JsonError<'read, R, S>
impl<'read, R, S> Unpin for JsonError<'read, R, S>
impl<'read, R, S> UnwindSafe for JsonError<'read, R, S>
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