pub enum Error {
AlpmType(Error),
InvalidUTF8(FromUtf8Error),
Io {
context: String,
source: Error,
},
IoPath {
path: PathBuf,
context: String,
source: Error,
},
InvalidFile {
path: PathBuf,
context: String,
},
ScriptNotFound {
script_name: String,
source: Error,
},
ScriptError {
context: String,
parameters: Vec<String>,
source: Error,
},
ScriptExecutionError {
parameters: Vec<String>,
stdout: String,
stderr: String,
},
BridgeParseError(String),
Json(Error),
}Expand description
The high-level error that can occur when using this crate.
Variants§
AlpmType(Error)
ALPM types error.
InvalidUTF8(FromUtf8Error)
UTF-8 parse error.
Io
IO error.
Fields
IoPath
IO error with additional path info for more context.
Fields
InvalidFile
Invalid file encountered.
Fields
ScriptNotFound
The alpm-pkgbuild-bridge script could not be found in $PATH.
Fields
§
source: ErrorThe error source.
ScriptError
The pkgbuild bridge script failed to be started.
Fields
ScriptExecutionError
The pkgbuild bridge script errored with some log output.
Fields
BridgeParseError(String)
A parsing error that occurred during winnow file parsing.
Json(Error)
JSON error while creating JSON formatted output.
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()
Source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
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§
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