pub enum ErrorKind {
Eof,
StackEmpty {
offset: usize,
},
InvalidEmptyObject {
offset: usize,
},
InvalidSyntax {
msg: String,
offset: usize,
},
Deserialize(DeserializeError),
Io(Error),
BufferFull,
}
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
Invalid syntax encountered
Fields
Deserialize(DeserializeError)
An error occurred when deserializing the data
Io(Error)
An error occurred when performing IO.
BufferFull
The internal buffer does not have enough room to store data for the next token
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
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