Enum cargo_simics_build::Error
source · pub enum Error {
Show 18 variants
SimicsBaseParseError {
output: Option<String>,
},
NoInstalledPackages,
NoBasePackage,
NoPathsForBasePackage,
BasePackageDirectoryDoesNotExist {
path: PathBuf,
},
NoCdylibArtifact {
package: String,
},
NoParentDirectory {
path: PathBuf,
},
NoFilename {
path: PathBuf,
},
CopyLibrary {
from: PathBuf,
to: PathBuf,
source: Error,
},
ReadDirectory {
path: PathBuf,
source: Error,
},
IoError(Error),
Other(Error),
VarError(VarError),
SubcommandError(Error),
CommandExtError(CommandExtError),
SignatureError(Error),
PackageError(Error),
FromUtf8Error(FromUtf8Error),
}
Expand description
An error raised during build
Variants§
SimicsBaseParseError
Raised when the SIMICS_BASE environment variable is set but could not be parsed
NoInstalledPackages
Raised when the SIMICS_BASE environment variable was not set or present in config.toml, and no base package was installed
NoBasePackage
Raised when the SIMICS_BASE environment variable was not set or present in config.toml, and no base package was installed
NoPathsForBasePackage
Raised when a base package is found, but no paths are registered for package number 1000
BasePackageDirectoryDoesNotExist
Raised when the base package directory does not exist
NoCdylibArtifact
Raised when no cdylib crate artifact is found for a package
NoParentDirectory
Raised when no parent directory is found for a path
NoFilename
Raised when no filename is found for a path
CopyLibrary
An error occurred while copying a library
Fields
ReadDirectory
An error occurred while reading a directory
Fields
IoError(Error)
A wrapped std::io::Error
Other(Error)
Any wrapped other error
VarError(VarError)
A wrapped std::env::VarError
SubcommandError(Error)
A wrapped subcommand error
CommandExtError(CommandExtError)
A wrapped CommandExt error
SignatureError(Error)
A wrapped signature error
PackageError(Error)
A wrapped package error
FromUtf8Error(FromUtf8Error)
A wrapped from utf8 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)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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