pub enum FormatError {
Show 88 variants
UnknownCompressionAlgo(u16),
UnknownAeadAlgo(u16),
UnknownFecAlgo(u16),
UnknownKdfAlgo(u16),
UnknownBlockKind(u8),
InvalidLength {
structure: &'static str,
expected: usize,
actual: usize,
},
BadMagic {
structure: &'static str,
},
BadCrc {
structure: &'static str,
},
UnsupportedFormatVersion(u16),
UnsupportedVolumeFormatRevision(u16),
NonZeroReserved {
structure: &'static str,
},
NonCanonicalCryptoHeaderOffset(u32),
ZeroStripeWidth,
VolumeIndexOutOfRange {
volume_index: u32,
stripe_width: u32,
},
CryptoHeaderLengthMismatch {
fixed: u32,
volume: u32,
},
UnsupportedCompressionForV36(CompressionAlgo),
UnsupportedFecForV36(FecAlgo),
InvalidBoolean {
field: &'static str,
value: u8,
},
VolumeLossToleranceOutOfRange {
volume_loss_tolerance: u8,
stripe_width: u32,
},
BitRotBufferPctTooLarge(u8),
ZeroDataShardMaximum {
field: &'static str,
},
ZeroChunkSize,
ZeroEnvelopeTargetSize,
ChunkSizeExceedsEnvelopeTarget {
chunk_size: u32,
envelope_target_size: u32,
},
BlockSizeTooSmall(u32),
OddBlockSize(u32),
ReaderResourceLimitExceeded {
field: &'static str,
cap: u64,
actual: u64,
},
InvalidBlockFlags(u8),
ParityBlockHasLastDataFlag,
InvalidAuthoritativeFlag(u8),
InvalidManifestFooterLength(u32),
IndexRootSizeMismatch,
EmptyIndexRootExtent,
UnsupportedBootstrapSidecarVersion(u32),
UnknownBootstrapSidecarFlags(u32),
EmptyBootstrapSidecarSection,
NonZeroAbsentBootstrapSidecarSection,
NonCanonicalBootstrapSidecarLayout,
TruncatedExtensionHeader,
TruncatedExtensionPayload,
ExtensionPayloadTooLarge(u32),
MalformedExtensionTerminator,
MissingExtensionTerminator,
BytesAfterExtensionTerminator,
CryptoHeaderTooShort {
min: usize,
actual: usize,
},
KdfAlgoTagMismatch {
expected: u16,
actual: u16,
},
TruncatedKdfParams,
InvalidKdfParams(&'static str),
KeyMaterialMismatch,
InvalidRawMasterKeyLength,
Argon2idFailure,
HkdfExpandFailure,
HmacMismatch {
structure: &'static str,
},
ForbiddenExtensionTag(u16),
UnknownCriticalExtension(u16),
DuplicateKnownExtension(u16),
MalformedKnownExtension(u16),
EmptyPaddedPlaintext,
InvalidSuffixPadding,
NonZeroPaddingBytes,
PaddingOverflow,
AeadFailure,
DomainTooLong,
InvalidNonceLength {
algo: AeadAlgo,
expected: usize,
actual: usize,
},
InvalidAeadKeyLength,
ZstdCompressionFailure,
EmptyZstdFrame,
NotStandardZstdFrame,
InvalidZstdFrame,
TrailingBytesAfterZstdFrame,
ZstdDecompressionFailure,
ZstdDecompressedSizeMismatch {
expected: usize,
actual: usize,
},
FecZeroDataShards,
FecTooManyShards(usize),
FecOddShardSize,
FecInconsistentShardSize,
FecTooFewAvailableShards,
FecSingularMatrix,
InvalidMetadata {
structure: &'static str,
reason: &'static str,
},
MetadataArithmeticOverflow {
structure: &'static str,
},
HashPrefixCollisionRunExceeded,
UnsafeArchivePath,
UnsafeOverwrite,
FilesystemExtractionFailed(&'static str),
WriterUnsupported(&'static str),
WriterInvariant(&'static str),
ReaderUnsupported(&'static str),
InvalidArchive(&'static str),
}Variants§
UnknownCompressionAlgo(u16)
UnknownAeadAlgo(u16)
UnknownFecAlgo(u16)
UnknownKdfAlgo(u16)
UnknownBlockKind(u8)
InvalidLength
BadMagic
BadCrc
UnsupportedFormatVersion(u16)
UnsupportedVolumeFormatRevision(u16)
NonZeroReserved
NonCanonicalCryptoHeaderOffset(u32)
ZeroStripeWidth
VolumeIndexOutOfRange
CryptoHeaderLengthMismatch
UnsupportedCompressionForV36(CompressionAlgo)
UnsupportedFecForV36(FecAlgo)
InvalidBoolean
VolumeLossToleranceOutOfRange
BitRotBufferPctTooLarge(u8)
ZeroDataShardMaximum
ZeroChunkSize
ZeroEnvelopeTargetSize
ChunkSizeExceedsEnvelopeTarget
BlockSizeTooSmall(u32)
OddBlockSize(u32)
ReaderResourceLimitExceeded
InvalidBlockFlags(u8)
ParityBlockHasLastDataFlag
InvalidAuthoritativeFlag(u8)
IndexRootSizeMismatch
EmptyIndexRootExtent
UnsupportedBootstrapSidecarVersion(u32)
UnknownBootstrapSidecarFlags(u32)
EmptyBootstrapSidecarSection
NonZeroAbsentBootstrapSidecarSection
NonCanonicalBootstrapSidecarLayout
TruncatedExtensionHeader
TruncatedExtensionPayload
ExtensionPayloadTooLarge(u32)
MalformedExtensionTerminator
MissingExtensionTerminator
BytesAfterExtensionTerminator
CryptoHeaderTooShort
KdfAlgoTagMismatch
TruncatedKdfParams
InvalidKdfParams(&'static str)
KeyMaterialMismatch
InvalidRawMasterKeyLength
Argon2idFailure
HkdfExpandFailure
HmacMismatch
ForbiddenExtensionTag(u16)
UnknownCriticalExtension(u16)
DuplicateKnownExtension(u16)
MalformedKnownExtension(u16)
EmptyPaddedPlaintext
InvalidSuffixPadding
NonZeroPaddingBytes
PaddingOverflow
AeadFailure
DomainTooLong
InvalidNonceLength
InvalidAeadKeyLength
ZstdCompressionFailure
EmptyZstdFrame
NotStandardZstdFrame
InvalidZstdFrame
TrailingBytesAfterZstdFrame
ZstdDecompressionFailure
ZstdDecompressedSizeMismatch
FecZeroDataShards
FecTooManyShards(usize)
FecOddShardSize
FecInconsistentShardSize
FecTooFewAvailableShards
FecSingularMatrix
InvalidMetadata
MetadataArithmeticOverflow
HashPrefixCollisionRunExceeded
UnsafeArchivePath
UnsafeOverwrite
FilesystemExtractionFailed(&'static str)
WriterUnsupported(&'static str)
WriterInvariant(&'static str)
ReaderUnsupported(&'static str)
InvalidArchive(&'static str)
Trait Implementations§
Source§impl Debug for FormatError
impl Debug for FormatError
Source§impl Display for FormatError
impl Display for FormatError
Source§impl Error for FormatError
impl Error for FormatError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for FormatError
impl PartialEq for FormatError
Source§fn eq(&self, other: &FormatError) -> bool
fn eq(&self, other: &FormatError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FormatError
impl StructuralPartialEq for FormatError
Auto Trait Implementations§
impl Freeze for FormatError
impl RefUnwindSafe for FormatError
impl Send for FormatError
impl Sync for FormatError
impl Unpin for FormatError
impl UnsafeUnpin for FormatError
impl UnwindSafe for FormatError
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
Mutably borrows from an owned value. Read more