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
Too many close delimiters were encountered
InvalidEmptyObject
Expected a close delimiter after encountering an empty opener
InvalidSyntax
Fields
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§
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