pub enum Error {
Show 46 variants
ReadFile {
path: PathBuf,
source: Error,
},
InvalidIconPath(PathBuf),
DecodeIcon {
path: PathBuf,
message: String,
},
InvalidIconDimensions {
path: PathBuf,
width: u32,
height: u32,
},
PngIconTooSmall {
path: PathBuf,
width: u32,
height: u32,
minimum: u32,
},
InvisibleIcon(PathBuf),
InvalidIconRasterSize(u32),
DuplicateIconRasterSize(u32),
MissingIconRaster(u32),
InvalidIconRasterData {
size: u32,
expected: usize,
actual: usize,
},
InvalidIconName(String),
EncodeIcon {
format: &'static str,
message: String,
},
InvalidApplicationMetadata {
field: &'static str,
message: String,
},
InvalidBundlePath {
path: PathBuf,
message: &'static str,
},
MissingBundleInput(PathBuf),
UnsupportedBundleInput(PathBuf),
DuplicateBundlePath(PathBuf),
SourceOutputOverlap {
source: PathBuf,
destination: PathBuf,
},
BundleOutputExists(PathBuf),
BundleIo {
operation: &'static str,
path: PathBuf,
source: Error,
},
PublishBundle {
from: PathBuf,
to: PathBuf,
source: Error,
},
RollbackBundle {
backup: PathBuf,
destination: PathBuf,
source: Error,
},
SerializePackageRecord(Error),
ParsePackageRecord {
path: PathBuf,
source: Error,
},
UnsupportedPackageRecordSchema(u32),
PackageRecordArtifactMissing(PathBuf),
PackageRecordLengthMismatch {
path: PathBuf,
expected: u64,
actual: u64,
},
PackageRecordChecksumMismatch {
path: PathBuf,
expected: String,
actual: String,
},
InvalidArchiveName(PathBuf),
ArchiveOutputExists(PathBuf),
ArchiveIo {
operation: &'static str,
path: PathBuf,
source: Error,
},
ArchiveEncoding {
format: &'static str,
message: String,
},
ArchiveDecoding {
format: &'static str,
message: String,
},
ArchiveChecksumMismatch {
path: PathBuf,
expected: String,
actual: String,
},
ArchivePackageRecordMismatch(PathBuf),
UnsupportedArchiveEntry(PathBuf),
InvalidUniversalMacOsSlice {
path: PathBuf,
message: String,
},
UniversalMacOsMismatch {
field: String,
arm64: String,
x64: String,
},
UniversalMacOsTool {
operation: &'static str,
path: PathBuf,
message: String,
},
DistributionTargetMismatch {
format: &'static str,
actual: String,
},
DistributionTool {
tool: &'static str,
operation: &'static str,
path: PathBuf,
message: String,
},
ParseNativeRuntimeManifest(Error),
SerializeNativeRuntimeManifest(Error),
InvalidNativeRuntimeManifest(String),
ParseFuiConfig(Error),
InvalidFuiConfig(String),
}Variants§
ReadFile
InvalidIconPath(PathBuf)
DecodeIcon
InvalidIconDimensions
PngIconTooSmall
InvisibleIcon(PathBuf)
InvalidIconRasterSize(u32)
DuplicateIconRasterSize(u32)
MissingIconRaster(u32)
InvalidIconRasterData
InvalidIconName(String)
EncodeIcon
InvalidApplicationMetadata
InvalidBundlePath
MissingBundleInput(PathBuf)
UnsupportedBundleInput(PathBuf)
DuplicateBundlePath(PathBuf)
SourceOutputOverlap
BundleOutputExists(PathBuf)
BundleIo
PublishBundle
RollbackBundle
SerializePackageRecord(Error)
ParsePackageRecord
UnsupportedPackageRecordSchema(u32)
PackageRecordArtifactMissing(PathBuf)
PackageRecordLengthMismatch
PackageRecordChecksumMismatch
InvalidArchiveName(PathBuf)
ArchiveOutputExists(PathBuf)
ArchiveIo
ArchiveEncoding
ArchiveDecoding
ArchiveChecksumMismatch
ArchivePackageRecordMismatch(PathBuf)
UnsupportedArchiveEntry(PathBuf)
InvalidUniversalMacOsSlice
UniversalMacOsMismatch
UniversalMacOsTool
DistributionTargetMismatch
DistributionTool
ParseNativeRuntimeManifest(Error)
SerializeNativeRuntimeManifest(Error)
InvalidNativeRuntimeManifest(String)
ParseFuiConfig(Error)
InvalidFuiConfig(String)
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 !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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