pub enum ReportError {
Io {
path: PathBuf,
source: Error,
},
Encode {
source: Box<dyn Error + Send + Sync>,
},
Decode {
path: PathBuf,
source: Box<DeserializeError>,
},
}Expand description
Why a report could not be written or read.
Variants§
Io
A file or directory could not be accessed.
Encode
The report could not be encoded as JSON.
Decode
The report file is not a valid report.
Implementations§
Trait Implementations§
Source§impl Debug for ReportError
impl Debug for ReportError
Source§impl Display for ReportError
impl Display for ReportError
Source§impl Error for ReportError
impl Error for ReportError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for ReportError
impl !UnwindSafe for ReportError
impl Freeze for ReportError
impl Send for ReportError
impl Sync for ReportError
impl Unpin for ReportError
impl UnsafeUnpin for ReportError
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