pub enum BridgeError {
NoName,
InvalidPackageName {
name: String,
error: Error,
},
UndeclaredPackageName(String),
UnusedPackageFunction(Name),
MissingRequiredKeyword {
keyword: Keyword,
},
ParseError {
keyword: Keyword,
error: String,
},
WrongVariableType {
keyword: String,
expected: String,
actual: String,
},
UnexpectedArchitecture {
keyword: Keyword,
suffix: Architecture,
},
UnclearableValue {
keyword: Keyword,
},
UnexpectedArray {
keyword: Keyword,
values: Vec<String>,
},
}Expand description
A lower-level error that may occur when converting alpm-pkgbuild-bridge script output into the
SourceInfo format.
Variants§
NoName
No pkgname has been specified.
InvalidPackageName
A package name is not valid.
UndeclaredPackageName(String)
A package function has been declared for a split package, but it is not defined in
pkgname.
UnusedPackageFunction(Name)
An unused package function exists for an undeclared alpm-split-package.
MissingRequiredKeyword
A type parser fails on a certain keyword.
ParseError
A type parser fails on a certain keyword.
WrongVariableType
A variable is expected to be of a different type.
E.g. String when an Array is expected.
Fields
UnexpectedArchitecture
A keyword has an architecture suffix even though it shouldn’t have one.
Fields
§
suffix: ArchitectureThe architecture that is found for the keyword.
UnclearableValue
A keyword that cannot be cleared is attempted to be cleared.
UnexpectedArray
A keyword should have only a single value, but an array is found.
Trait Implementations§
Source§impl Debug for BridgeError
impl Debug for BridgeError
Source§impl Display for BridgeError
impl Display for BridgeError
Source§impl Error for BridgeError
impl Error for BridgeError
1.30.0 · 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<BridgeError> for Error
impl From<BridgeError> for Error
Source§fn from(source: BridgeError) -> Self
fn from(source: BridgeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BridgeError
impl RefUnwindSafe for BridgeError
impl Send for BridgeError
impl Sync for BridgeError
impl Unpin for BridgeError
impl UnwindSafe for BridgeError
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