pub enum Error {
AlpmCommon(Error),
InvalidFilesPaths {
message: String,
},
Io {
context: String,
source: Error,
},
IoPath {
path: PathBuf,
context: String,
source: Error,
},
ParseError(String),
UnknownSchemaVersion,
}Expand description
The error that can occur when working with the alpm-repo-files format.
Variants§
AlpmCommon(Error)
An alpm_common::Error occurred.
InvalidFilesPaths
One or more invalid paths for a RepoFiles are encountered.
Io
An I/O error occurred.
Fields
IoPath
An I/O error occurred at a path.
Fields
ParseError(String)
A winnow parser for a type didn’t work and produced an error.
UnknownSchemaVersion
No schema version can be derived from alpm-repo-files data.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 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