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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<'a> From<ParseError<&'a str, ContextError>> for Error
impl<'a> From<ParseError<&'a str, ContextError>> for Error
Source§fn from(value: ParseError<&'a str, ContextError>) -> Self
fn from(value: ParseError<&'a str, ContextError>) -> Self
Converts a winnow::error::ParseError into an Error::ParseError.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more