#[non_exhaustive]pub enum ArtifactCacheError {
InvalidSpec {
message: String,
},
Io {
operation: &'static str,
path: PathBuf,
source: Error,
},
InputsChangedDuringPreparation {
before: InputDigest,
after: InputDigest,
},
InputsChangedDuringBuild {
before: InputDigest,
after: InputDigest,
},
CargoBuildInputsChanged {
label: String,
before: InputDigest,
after: InputDigest,
},
CargoBuildInputRevalidation {
label: String,
source: WasmBuildError,
},
InvalidOutputs {
outputs: Vec<(String, PathBuf)>,
},
UnknownOutput {
name: String,
},
FailedTransactionCleanup {
transaction_error: Box<Self>,
path: PathBuf,
source: Error,
},
}Expand description
Structured failure from transactional artifact caching.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidSpec
The caller supplied an incomplete, ambiguous, or unsafe specification.
Io
A filesystem operation failed.
InputsChangedDuringPreparation
Inputs repeatedly changed while preparing a stable cache acquisition.
InputsChangedDuringBuild
Inputs changed while the caller owned a build transaction.
CargoBuildInputsChanged
A resolved Cargo source/configuration set changed after it was captured.
Fields
before: InputDigestExact Cargo fingerprint or source digest captured by the resolver.
after: InputDigestExact fingerprint or source digest observed during revalidation.
CargoBuildInputRevalidation
Rehashing a resolved Cargo input set failed.
Fields
source: WasmBuildErrorUnderlying exact Cargo input error.
InvalidOutputs
One or more declared staged outputs were missing or failed validation.
UnknownOutput
A logical output name was not declared by the transaction specification.
FailedTransactionCleanup
Transaction failure cleanup also failed.
Trait Implementations§
Source§impl Debug for ArtifactCacheError
impl Debug for ArtifactCacheError
Source§impl Display for ArtifactCacheError
impl Display for ArtifactCacheError
Source§impl Error for ArtifactCacheError
impl Error for ArtifactCacheError
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
use the Display impl or to_string()