#[non_exhaustive]pub enum CompressionErrorKind {
InvalidMagic,
UnsupportedVersion,
ChecksumMismatch,
Truncated,
InvalidFormat,
UnsupportedEndianPolicy,
MissingBody,
MissingChannel,
OutOfRangeInstant,
UnsupportedTimeScale,
QuantizationOverflow,
}Expand description
Error categories for compression and artifact parsing.
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.
InvalidMagic
The artifact magic header did not match.
UnsupportedVersion
The artifact version is not supported.
ChecksumMismatch
The checksum did not match the payload.
Truncated
The payload ended unexpectedly.
InvalidFormat
The artifact contents were malformed.
UnsupportedEndianPolicy
The artifact declared an unsupported byte-order policy.
MissingBody
The requested body was not present.
MissingChannel
A required channel was absent.
OutOfRangeInstant
The requested instant was outside the available segments.
UnsupportedTimeScale
The instant used an unsupported time scale.
QuantizationOverflow
A coefficient exceeded the supported integer quantization range.
Trait Implementations§
Source§impl Clone for CompressionErrorKind
impl Clone for CompressionErrorKind
impl Copy for CompressionErrorKind
Source§impl Debug for CompressionErrorKind
impl Debug for CompressionErrorKind
Source§impl<'de> Deserialize<'de> for CompressionErrorKind
impl<'de> Deserialize<'de> for CompressionErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CompressionErrorKind
Source§impl Hash for CompressionErrorKind
impl Hash for CompressionErrorKind
Source§impl PartialEq for CompressionErrorKind
impl PartialEq for CompressionErrorKind
Source§impl Serialize for CompressionErrorKind
impl Serialize for CompressionErrorKind
impl StructuralPartialEq for CompressionErrorKind
Auto Trait Implementations§
impl Freeze for CompressionErrorKind
impl RefUnwindSafe for CompressionErrorKind
impl Send for CompressionErrorKind
impl Sync for CompressionErrorKind
impl Unpin for CompressionErrorKind
impl UnsafeUnpin for CompressionErrorKind
impl UnwindSafe for CompressionErrorKind
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