pub enum SperrCodecError {
UnsupportedDtype(AnyArrayDType),
HeaderEncodeFailed {
source: SperrHeaderError,
},
SperrEncodeFailed {
source: SperrCodingError,
},
SliceEncodeFailed {
source: SperrSliceError,
},
EncodedDataNotBytes {
dtype: AnyArrayDType,
},
EncodedDataNotOneDimensional {
shape: Vec<usize>,
},
HeaderDecodeFailed {
source: SperrHeaderError,
},
SliceDecodeFailed {
source: SperrSliceError,
},
DecodeTooManySlices,
SperrDecodeFailed {
source: SperrCodingError,
},
DecodeInvalidShape {
source: ShapeError,
},
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
}
Expand description
Errors that may occur when applying the SperrCodec
.
Variants§
UnsupportedDtype(AnyArrayDType)
SperrCodec
does not support the dtype
HeaderEncodeFailed
SperrCodec
failed to encode the header
Fields
source: SperrHeaderError
Opaque source error
SperrEncodeFailed
SperrCodec
failed to encode the data
Fields
source: SperrCodingError
Opaque source error
SliceEncodeFailed
SperrCodec
failed to encode a slice
Fields
source: SperrSliceError
Opaque source error
EncodedDataNotBytes
SperrCodec
can only decode one-dimensional byte arrays but received
an array of a different dtype
Fields
dtype: AnyArrayDType
The unexpected dtype of the encoded array
EncodedDataNotOneDimensional
SperrCodec
can only decode one-dimensional byte arrays but received
an array of a different shape
HeaderDecodeFailed
SperrCodec
failed to decode the header
Fields
source: SperrHeaderError
Opaque source error
SliceDecodeFailed
SperrCodec
failed to decode a slice
Fields
source: SperrSliceError
Opaque source error
DecodeTooManySlices
SperrCodec
failed to decode from an excessive number of slices
SperrDecodeFailed
SperrCodec
failed to decode the data
Fields
source: SperrCodingError
Opaque source error
DecodeInvalidShape
SperrCodec
decoded into an invalid shape not matching the data size
Fields
source: ShapeError
The source of the error
MismatchedDecodeIntoArray
SperrCodec
cannot decode into the provided array
Fields
source: AnyArrayAssignError
The source of the error