pub enum RrfError {
Io {
path: PathBuf,
source: Error,
},
Missing {
root: PathBuf,
name: &'static str,
},
Csv {
path: PathBuf,
source: Error,
},
Columns {
path: PathBuf,
line: u64,
columns: usize,
expected: usize,
},
Utf8 {
path: PathBuf,
line: u64,
source: Utf8Error,
},
Identifier {
path: PathBuf,
line: u64,
value: String,
source: ParseIntError,
},
}Expand description
A failure to read a release.
Variants§
Io
A directory or file cannot be read.
Missing
A file the reader needs is not in the release.
Csv
A row does not parse.
Columns
A row has fewer columns than the layout.
Fields
Utf8
A field is not UTF-8.
Identifier
An identifier is not a number.
Trait Implementations§
Source§impl Error for RrfError
impl Error for RrfError
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 RrfError
impl !UnwindSafe for RrfError
impl Freeze for RrfError
impl Send for RrfError
impl Sync for RrfError
impl Unpin for RrfError
impl UnsafeUnpin for RrfError
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