pub enum ExtractionErrorKind {
Show 14 variants
InvalidPlan,
Io,
MalformedArchive,
InvalidPath,
TooManyEntries,
ArchiveTooLarge,
NonRegularMember,
DuplicateArchiveMember,
MissingMember,
MemberTooLarge,
TotalTooLarge,
SizeMismatch,
DigestMismatch,
CleanupFailed,
}Expand description
Stable error categories for extraction and cleanup.
Variants§
InvalidPlan
The plan or a caller-selected directory is invalid.
Io
The source archive or private output could not be read or written.
MalformedArchive
The archive structure, compression stream, or checksum is malformed.
InvalidPath
A member path is ambiguous, unsupported, or unsafe.
TooManyEntries
The archive contains more entries than the declared bound.
ArchiveTooLarge
The compressed archive file exceeds its declared byte limit.
NonRegularMember
A declared member is a link, directory, or special file.
DuplicateArchiveMember
Two archive entries have the same normalized member path.
MissingMember
A required declared member does not occur in the archive.
MemberTooLarge
A member exceeds its finite decompressed-byte limit.
TotalTooLarge
The operation exceeds its aggregate decompressed-byte limit.
SizeMismatch
A member’s observed size differs from its declared exact size.
DigestMismatch
A member’s observed SHA-256 differs from its declared digest.
CleanupFailed
The owned root could not be fully emptied.
The residue path is available from ExtractionError::residue_path.
The residue may be partially emptied and its emptiness is not
guaranteed, so a caller must inspect the directory itself.
Trait Implementations§
Source§impl Clone for ExtractionErrorKind
impl Clone for ExtractionErrorKind
impl Copy for ExtractionErrorKind
Source§impl Debug for ExtractionErrorKind
impl Debug for ExtractionErrorKind
impl Eq for ExtractionErrorKind
Source§impl PartialEq for ExtractionErrorKind
impl PartialEq for ExtractionErrorKind
impl StructuralPartialEq for ExtractionErrorKind
Auto Trait Implementations§
impl Freeze for ExtractionErrorKind
impl RefUnwindSafe for ExtractionErrorKind
impl Send for ExtractionErrorKind
impl Sync for ExtractionErrorKind
impl Unpin for ExtractionErrorKind
impl UnsafeUnpin for ExtractionErrorKind
impl UnwindSafe for ExtractionErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.