pub enum ErrorKind {
Eof,
StackEmpty {
offset: usize,
},
InvalidEmptyObject {
offset: usize,
},
InvalidSyntax {
msg: String,
offset: usize,
},
Deserialize(DeserializeError),
Io(Error),
}Expand description
Specific type of error
Variants
Eof
Unexpected end of input
StackEmpty
Fields
offset: usizeThe byte offset where the stack became empty
Too many close delimiters were encountered
InvalidEmptyObject
Fields
offset: usizeThe byte offset where the invalid empty object was encountered
Expected a close delimiter after encountering an empty opener
InvalidSyntax
Fields
msg: StringAn error message describing the invalid syntax
offset: usizeThe byte offset where the invalid syntax was encountered
Invalid syntax encountered
Deserialize(DeserializeError)
An error occurred when deserializing the data
Io(Error)
An error occurred when performing IO.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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