pub enum ArchiveError {
Show 13 variants
InvalidMember,
Archive(ArtifactError),
Decompression(ArtifactError),
TrailingCompressedData,
Tar(Error),
LimitExceeded {
resource: ArchiveResource,
limit: u64,
},
UnsupportedEntry {
entry: u32,
kind: u8,
},
TruncatedEntry {
entry: u32,
},
InvalidPadding,
MissingMember,
DuplicateMember,
Member(ArtifactError),
Allocation(TryReserveError),
}Expand description
Typed archive admission and decoding failures.
Variants§
InvalidMember
The requested member is not a canonical relative POSIX path.
Archive(ArtifactError)
Compressed bytes failed bounded digest verification.
Decompression(ArtifactError)
Gzip decoding, its integrity check or its inflated byte bound failed.
TrailingCompressedData
Bytes follow the single gzip stream, including another gzip stream.
Tar(Error)
Tar header framing, checksum or numeric decoding failed.
LimitExceeded
A raw record exceeded its caller-owned resource bound.
UnsupportedEntry
Unsupported metadata, link, sparse or special-file record.
TruncatedEntry
An entry’s declared payload/padding extends beyond the inflated bytes.
InvalidPadding
Tar end markers or the remaining zero padding are malformed.
MissingMember
No regular member has the exact requested name.
DuplicateMember
More than one record has the exact requested name.
Member(ArtifactError)
Selected bytes differ from the consumer’s admitted executable digest.
Allocation(TryReserveError)
Fallible selected-payload allocation failed.
Trait Implementations§
Source§impl Debug for ArchiveError
impl Debug for ArchiveError
Source§impl Display for ArchiveError
impl Display for ArchiveError
Source§impl Error for ArchiveError
impl Error for ArchiveError
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()