pub enum ErrorKind {
NoError,
UnexpectedToken {
expected: &'static str,
at: <TokenStream as IntoIterator>::IntoIter,
},
Other {
reason: String,
},
Dynamic(Arc<dyn Error>),
}
Expand description
Actual kind of an error.
Variants§
NoError
A no error state that can be upgraded by later errors.
UnexpectedToken
Trying to parse expected
.
Fields
§
at: <TokenStream as IntoIterator>::IntoIter
Iterator starting at the error
Other
Something else failed which can be fully formatted as String
.
Dynamic(Arc<dyn Error>)
Any other error.
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