pub enum ExternalReceiptHistoryIoError {
ReadHistory {
path: PathBuf,
source: Error,
},
Parse {
path: PathBuf,
source: ExternalReceiptParseError,
},
}Expand description
I/O errors when reading a receipt history file off disk.
Variants§
ReadHistory
The history file could not be opened or read.
Parse
The receipt history text did not parse as repeated v1 receipt records.
Fields
§
source: ExternalReceiptParseErrorParse failure.
Trait Implementations§
Source§impl Error for ExternalReceiptHistoryIoError
impl Error for ExternalReceiptHistoryIoError
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 Freeze for ExternalReceiptHistoryIoError
impl !RefUnwindSafe for ExternalReceiptHistoryIoError
impl Send for ExternalReceiptHistoryIoError
impl Sync for ExternalReceiptHistoryIoError
impl Unpin for ExternalReceiptHistoryIoError
impl UnsafeUnpin for ExternalReceiptHistoryIoError
impl !UnwindSafe for ExternalReceiptHistoryIoError
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