pub struct Error { /* private fields */ }Expand description
A source-located failure with independently retained diagnostic storage.
Implementations§
Source§impl Error
impl Error
Sourcepub fn encoding_source(&self) -> Option<&Error>
pub fn encoding_source(&self) -> Option<&Error>
The original reader diagnostic, including any available path.
Sourcepub fn is_resource(&self) -> bool
pub fn is_resource(&self) -> bool
Whether processing refused resources rather than document syntax.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
An inspection recovery must abort instead of retaining a document fault. Resource refusals and a foreign producing reader are operation failures; neither can establish a malformed value, mismatch or successful absence.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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