Enum InputManifestError

Source
#[non_exhaustive]
pub enum InputManifestError {
Show 34 variants ManifestMissingHeader, MissingGitOidInHeader, MissingObjectTypeInHeader, MissingHeaderParts, MissingBomIndicatorInRelation, MissingRelationParts(Box<str>), WrongHashAlgorithm { expected: Box<str>, got: Box<str>, }, UnknownEmbeddingTarget, FailedManifestRead(Box<Error>), FailedTargetArtifactRead(Box<Error>), ArtifactIdError(ArtifactIdError), NoStorageRoot, CantAccessRoot(Box<str>, Box<Error>), ObjectStoreNotDir(Box<str>), InvalidObjectStorePath(Box<str>), ObjectStoreDirNotEmpty(Box<str>), CantCreateObjectStoreDir(Box<str>, Box<Error>), CantWriteManifestDir(Box<str>, Box<Error>), CantOpenTargetIndex(Box<str>, Box<Error>), CantCreateTargetIndex(Box<str>, Box<Error>), CantOpenTargetIndexTemp(Box<str>, Box<Error>), CantWriteTargetIndexTemp(Box<str>, Box<Error>), CantDeleteTargetIndexTemp(Box<str>, Box<Error>), CantReplaceTargetIndexWithTemp { temp: Box<str>, index: Box<str>, source: Box<Error>, }, CantWriteManifest(Box<str>, Box<Error>), TargetIndexMalformedEntry { line_no: usize, }, CantReadTargetIndexLine { line_no: usize, source: Box<Error>, }, InvalidTargetIndexUpsert, FailedStorageCleanup(Box<str>, Box<Error>), CantFindManifestForTarget(Box<str>), CantFindManifestWithId(Box<str>), MissingTargetIndexRemoveCriteria, NoManifestFoundToRemove, CantRemoveManifest(Box<Error>),
}
Expand description

An error arising from Input Manifest operations.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

ManifestMissingHeader

Input manifest missing header line.

§

MissingGitOidInHeader

Missing ‘gitoid’ in manifest header.

§

MissingObjectTypeInHeader

Missing ‘blob’ in manifest header.

§

MissingHeaderParts

Missing one or more header parts.

§

MissingBomIndicatorInRelation

Missing bom indicator in relation.

§

MissingRelationParts(Box<str>)

Missing one or more relation parts.

§

WrongHashAlgorithm

Wrong hash algorithm.

Fields

§expected: Box<str>

The expected hash algorithm.

§got: Box<str>

The hash algorithm encountered.

§

UnknownEmbeddingTarget

Unknown file type for manifest ID embedding.

§

FailedManifestRead(Box<Error>)

Failed to read input manifest file.

§

FailedTargetArtifactRead(Box<Error>)

Failed to read the target artifact during input manifest creation.

§

ArtifactIdError(ArtifactIdError)

An error arising from an Artifact ID problem.

§

NoStorageRoot

No storage root found.

§

CantAccessRoot(Box<str>, Box<Error>)

Can’t access storage root.

§

ObjectStoreNotDir(Box<str>)

Object store is not a directory.

§

InvalidObjectStorePath(Box<str>)

Object store path is not valid.

§

ObjectStoreDirNotEmpty(Box<str>)

Object store is not empty.

§

CantCreateObjectStoreDir(Box<str>, Box<Error>)

Can’t create object store.

§

CantWriteManifestDir(Box<str>, Box<Error>)

Can’t write manifest directory.

§

CantOpenTargetIndex(Box<str>, Box<Error>)

Can’t open target index file.

§

CantCreateTargetIndex(Box<str>, Box<Error>)

Can’t create target index file.

§

CantOpenTargetIndexTemp(Box<str>, Box<Error>)

Can’t open target index temp file during an upsert.

§

CantWriteTargetIndexTemp(Box<str>, Box<Error>)

Can’t write to target index temp file for upsert.

§

CantDeleteTargetIndexTemp(Box<str>, Box<Error>)

Can’t delete target index temp file during an upsert.

§

CantReplaceTargetIndexWithTemp

Can’t replace target index with temp file.

Fields

§temp: Box<str>

The path to the target index temp file.

§index: Box<str>

The path to the target index file.

§source: Box<Error>

The underlying IO error.

§

CantWriteManifest(Box<str>, Box<Error>)

Can’t write manifest file.

§

TargetIndexMalformedEntry

Target index entry is malformed.

Fields

§line_no: usize

The line of the malformed entry.

§

CantReadTargetIndexLine

Can’t read entry of the target index file.

Fields

§line_no: usize

The line of the entry we can’t read.

§source: Box<Error>

The underlying IO error.

§

InvalidTargetIndexUpsert

An Artifact ID is missing from target index upsert.

§

FailedStorageCleanup(Box<str>, Box<Error>)

Failed to clean up storage root.

§

CantFindManifestForTarget(Box<str>)

Can’t find manifest for target Artifact ID.

§

CantFindManifestWithId(Box<str>)

Can’t find manifest with Artifact ID.

§

MissingTargetIndexRemoveCriteria

Missing target index removal criteria.

§

NoManifestFoundToRemove

No manifest found to remove in the target index

§

CantRemoveManifest(Box<Error>)

Can’t remove manifest from storage.

Trait Implementations§

Source§

impl Debug for InputManifestError

Source§

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

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

impl Display for InputManifestError

Source§

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

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

impl Error for InputManifestError

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<ArtifactIdError> for InputManifestError

Source§

fn from(source: ArtifactIdError) -> Self

Converts to this type from the input type.

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 = 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.
Source§

impl<T> ErasedDestructor for T
where T: 'static,