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

Fields

§name: String

Package name

§

InvalidBuildIdNamespace

Invalid value build ID namespace

Fields

§value: Value

The invalid value

§

PackageNumberNotFound

No package number found in metadata

Fields

§manifest: PathBuf

Path to the manifest

§

InvalidPackageNumber

Invalid package number

Fields

§value: Value

The invalid value

§

InvalidConfidentiality

Invalid confidentiality

Fields

§value: Value

The invalid value

§

InvalidAccessLabel

Invalid access label

Fields

§value: Value

The invalid value

§

CdylibTargetNotFound

No cdylib target found

Fields

§targets: Vec<Target>

The set of targets not containing a cdylib

§

ParentNotFound

No parent found

Fields

§path: PathBuf

The path with missing parent

§

CdylibArtifactNotFound

No cdylib artifact found

Fields

§package: String

The package with no cdylib artifact

§

PathConversionError

Failed to convert path to string

Fields

§path: PathBuf

The path that could not be converted

§

NotADirectory

Not a directory

Fields

§path: PathBuf

The path that is not a directory

§

FilenameNotFound

Filename not found

Fields

§path: PathBuf

The path with no filename

§

PackageMetadataNotFound

Simics package metadata not found

Fields

§manifest_path: PathBuf

The path to the manifest with no package metadata

§

PackageMetadataFieldNotFound

Package metadata field not found

Fields

§field_name: String

The missing field name

§

PackageSpecNotFound

Package specifications is empty

§

WritePackageError

Error writing package file

Fields

§path: PathBuf

The path to the package file

§source: Error

The underlying error

§

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 Debug for Error

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for Error

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for Error

source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
source§

impl From<Error> for Error

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for Error

source§

fn from(source: Error) -> Self

Converts to this type from the input type.
source§

impl From<ParseIntError> for Error

source§

fn from(source: ParseIntError) -> Self

Converts to this type from the input type.
source§

impl From<StripPrefixError> for Error

source§

fn from(source: StripPrefixError) -> Self

Converts to this type from the input type.
source§

impl From<SystemTimeError> for Error

source§

fn from(source: SystemTimeError) -> Self

Converts to this type from the input type.
source§

impl From<Utf8Error> for Error

source§

fn from(source: Utf8Error) -> 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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.