Enum simics_package::error::Error
source · pub enum Error {
Show 25 variants
PackageNotFound {
name: String,
},
InvalidBuildIdNamespace {
value: Value,
},
PackageNumberNotFound {
manifest: PathBuf,
},
InvalidPackageNumber {
value: Value,
},
InvalidConfidentiality {
value: Value,
},
InvalidAccessLabel {
value: Value,
},
CdylibTargetNotFound {
targets: Vec<Target>,
},
ParentNotFound {
path: PathBuf,
},
CdylibArtifactNotFound {
package: String,
},
PathConversionError {
path: PathBuf,
},
NotADirectory {
path: PathBuf,
},
FilenameNotFound {
path: PathBuf,
},
PackageMetadataNotFound {
manifest_path: PathBuf,
},
PackageMetadataFieldNotFound {
field_name: String,
},
PackageSpecNotFound,
WritePackageError {
path: PathBuf,
source: Error,
},
NonAddonPackage,
CargoMetadataError(Error),
ParseIntError(ParseIntError),
IoError(Error),
StripPrefixError(StripPrefixError),
SerdeJsonError(Error),
SerdeYamlError(Error),
Utf8Error(Utf8Error),
SystemTimeError(SystemTimeError),
}
Expand description
An error raised during the packaging process
Variants§
PackageNotFound
No package found in metadata
InvalidBuildIdNamespace
Invalid value build ID namespace
PackageNumberNotFound
No package number found in metadata
InvalidPackageNumber
Invalid package number
InvalidConfidentiality
Invalid confidentiality
InvalidAccessLabel
Invalid access label
CdylibTargetNotFound
No cdylib target found
ParentNotFound
No parent found
CdylibArtifactNotFound
No cdylib artifact found
PathConversionError
Failed to convert path to string
NotADirectory
Not a directory
FilenameNotFound
Filename not found
PackageMetadataNotFound
Simics package metadata not found
PackageMetadataFieldNotFound
Package metadata field not found
PackageSpecNotFound
Package specifications is empty
WritePackageError
Error writing package file
NonAddonPackage
Non-addon type packages are not supported
CargoMetadataError(Error)
Cargo metadata error
ParseIntError(ParseIntError)
Parse integer error
IoError(Error)
IO error
StripPrefixError(StripPrefixError)
Strip prefix error
SerdeJsonError(Error)
Serde json error
SerdeYamlError(Error)
Serde yaml error
Utf8Error(Utf8Error)
Utf8 error
SystemTimeError(SystemTimeError)
System time error
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<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
source§impl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Converts to this type from the input type.
source§impl From<SystemTimeError> for Error
impl From<SystemTimeError> for Error
source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> 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