pub enum PackagingError {
Message(String),
Io(Error),
Json(Error),
Icon(IconGenerationError),
Zip(ZipError),
}Expand description
Error returned by the packaging command and its format-specific backends.
The display text is intended for command-line diagnostics. Callers should match variants, not parse those strings.
§Examples
use ailloli_ui_packaging::PackagingError;
let error: PackagingError = std::io::Error::new(
std::io::ErrorKind::PermissionDenied,
"artifact",
).into();
assert!(matches!(error, PackagingError::Io(_)));
assert!(error.to_string().contains("packaging I/O failed"));Variants§
Message(String)
A packaging invariant or external command failed with contextual text.
Io(Error)
A filesystem or process-I/O operation failed.
Json(Error)
Identity, receipt, or manifest JSON was malformed.
Icon(IconGenerationError)
Application-icon validation or generation failed.
Zip(ZipError)
A portable Windows ZIP archive could not be generated.
Trait Implementations§
Source§impl Debug for PackagingError
impl Debug for PackagingError
Source§impl Display for PackagingError
impl Display for PackagingError
Source§impl Error for PackagingError
impl Error for PackagingError
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<Error> for PackagingError
impl From<Error> for PackagingError
Source§impl From<Error> for PackagingError
impl From<Error> for PackagingError
Auto Trait Implementations§
impl Freeze for PackagingError
impl !RefUnwindSafe for PackagingError
impl Send for PackagingError
impl Sync for PackagingError
impl Unpin for PackagingError
impl !UnwindSafe for PackagingError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more