Skip to main content

ArtifactPathError

Enum ArtifactPathError 

Source
pub enum ArtifactPathError {
Show 36 variants InvalidArtifactId { value: String, }, WorkspaceAllocationExhausted { logical_id: ArtifactId, }, PublicationDestinationExists { path: PathBuf, }, ReservedManifestPath { path: PathBuf, }, RequiredArtifactMissing { path: PathBuf, }, DuplicateLatestDestination { id: ArtifactId, }, LatestTransactionAllocationExhausted, LatestLockTimeout { path: PathBuf, }, LatestSnapshotUnavailable { path: PathBuf, }, InvalidLatestPointer { path: PathBuf, }, LatestArtifactNotInSnapshot { id: ArtifactId, }, CorruptGeneration { path: PathBuf, detail: String, }, BrokenGenerationChain { generation: String, predecessor: String, }, GenerationChainCycle { generation: String, }, AmbiguousGenerationFork { predecessor: String, children: Vec<String>, }, AmbiguousGenerationTips { tips: Vec<String>, }, StaleLatestGeneration { expected: Option<String>, observed: Option<String>, }, ProducerDowngrade { existing: String, attempted: String, }, InvalidProducerVersion { version: String, source: Error, }, UnknownManifestVersion { path: PathBuf, found: u32, supported: u32, }, ManifestIntegrity { path: PathBuf, detail: String, }, ManifestJson { path: PathBuf, source: Error, }, LatestRollback { original: Box<ArtifactPathError>, rollback: Box<ArtifactPathError>, recovery_path: PathBuf, }, LatestStagingCleanup { original: Box<ArtifactPathError>, cleanup: Box<ArtifactPathError>, staging_path: PathBuf, }, PublicationDurabilityUncertain { path: PathBuf, source: Box<ArtifactPathError>, }, PublicationPostCommitMaintenance { path: PathBuf, source: Box<ArtifactPathError>, }, LatestCommitDurabilityUncertain { generation: String, source: Box<ArtifactPathError>, }, LatestRetentionAfterCommit { generation: String, source: Box<ArtifactPathError>, }, RootNotDirectory(PathBuf), InvalidRelativePath { path: PathBuf, }, SymlinkComponent { path: PathBuf, }, DirectoryComponentNotDirectory { path: PathBuf, }, FileDestinationNotFile { path: PathBuf, }, HardLinkedArtifact { path: PathBuf, links: u64, }, NonUtf8ArtifactPath { path: PathBuf, }, Io { operation: &'static str, path: PathBuf, source: Error, },
}
Expand description

Failure to approve a root or safely prepare one of its descendants.

Variants§

§

InvalidArtifactId

Fields

§value: String
§

WorkspaceAllocationExhausted

Fields

§logical_id: ArtifactId
§

PublicationDestinationExists

Fields

§path: PathBuf
§

ReservedManifestPath

Fields

§path: PathBuf
§

RequiredArtifactMissing

Fields

§path: PathBuf
§

DuplicateLatestDestination

Fields

§

LatestTransactionAllocationExhausted

§

LatestLockTimeout

Fields

§path: PathBuf
§

LatestSnapshotUnavailable

Fields

§path: PathBuf
§

InvalidLatestPointer

Fields

§path: PathBuf
§

LatestArtifactNotInSnapshot

Fields

§

CorruptGeneration

Fields

§path: PathBuf
§detail: String
§

BrokenGenerationChain

Fields

§generation: String
§predecessor: String
§

GenerationChainCycle

Fields

§generation: String
§

AmbiguousGenerationFork

Fields

§predecessor: String
§children: Vec<String>
§

AmbiguousGenerationTips

Fields

§tips: Vec<String>
§

StaleLatestGeneration

Fields

§expected: Option<String>
§observed: Option<String>
§

ProducerDowngrade

Fields

§existing: String
§attempted: String
§

InvalidProducerVersion

Fields

§version: String
§source: Error
§

UnknownManifestVersion

Fields

§path: PathBuf
§found: u32
§supported: u32
§

ManifestIntegrity

Fields

§path: PathBuf
§detail: String
§

ManifestJson

Fields

§path: PathBuf
§source: Error
§

LatestRollback

Fields

§recovery_path: PathBuf

Transaction directory retained with any unrestored backups.

§

LatestStagingCleanup

Fields

§staging_path: PathBuf
§

PublicationDurabilityUncertain

Fields

§path: PathBuf
§

PublicationPostCommitMaintenance

Fields

§path: PathBuf
§

LatestCommitDurabilityUncertain

Fields

§generation: String
§

LatestRetentionAfterCommit

Fields

§generation: String
§

RootNotDirectory(PathBuf)

§

InvalidRelativePath

Fields

§path: PathBuf
§

SymlinkComponent

Fields

§path: PathBuf
§

DirectoryComponentNotDirectory

Fields

§path: PathBuf
§

FileDestinationNotFile

Fields

§path: PathBuf
§

HardLinkedArtifact

Fields

§path: PathBuf
§links: u64
§

NonUtf8ArtifactPath

Fields

§path: PathBuf
§

Io

Fields

§operation: &'static str
§path: PathBuf
§source: Error

Trait Implementations§

Source§

impl Debug for ArtifactPathError

Source§

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

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

impl Display for ArtifactPathError

Source§

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

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

impl Error for ArtifactPathError

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

Auto Trait Implementations§

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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.