pub enum ZstdCodecError {
HeaderEncodeFailed {
source: ZstdHeaderError,
},
ZstdEncodeFailed {
source: ZstdCodingError,
},
EncodedDataNotBytes {
dtype: AnyArrayDType,
},
EncodedDataNotOneDimensional {
shape: Vec<usize>,
},
HeaderDecodeFailed {
source: ZstdHeaderError,
},
DecodeExcessiveEncodedData,
DecodeProducedLess,
ZstdDecodeFailed {
source: ZstdCodingError,
},
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
}Expand description
Errors that may occur when applying the ZstdCodec.
Variants§
HeaderEncodeFailed
ZstdCodec failed to encode the header
Fields
§
source: ZstdHeaderErrorOpaque source error
ZstdEncodeFailed
ZstdCodec failed to encode the encoded data
Fields
§
source: ZstdCodingErrorOpaque source error
EncodedDataNotBytes
ZstdCodec can only decode one-dimensional byte arrays but received
an array of a different dtype
Fields
§
dtype: AnyArrayDTypeThe unexpected dtype of the encoded array
EncodedDataNotOneDimensional
ZstdCodec can only decode one-dimensional byte arrays but received
an array of a different shape
HeaderDecodeFailed
ZstdCodec failed to encode the header
Fields
§
source: ZstdHeaderErrorOpaque source error
DecodeExcessiveEncodedData
ZstdCodec decode consumed less encoded data, which contains trailing
junk
DecodeProducedLess
ZstdCodec produced less decoded data than expected
ZstdDecodeFailed
ZstdCodec failed to decode the encoded data
Fields
§
source: ZstdCodingErrorOpaque source error
MismatchedDecodeIntoArray
ZstdCodec cannot decode into the provided array
Fields
§
source: AnyArrayAssignErrorThe source of the error
Trait Implementations§
Source§impl Debug for ZstdCodecError
impl Debug for ZstdCodecError
Source§impl Display for ZstdCodecError
impl Display for ZstdCodecError
Source§impl Error for ZstdCodecError
impl Error for ZstdCodecError
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 From<AnyArrayAssignError> for ZstdCodecError
impl From<AnyArrayAssignError> for ZstdCodecError
Source§fn from(source: AnyArrayAssignError) -> Self
fn from(source: AnyArrayAssignError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ZstdCodecError
impl !RefUnwindSafe for ZstdCodecError
impl Send for ZstdCodecError
impl Sync for ZstdCodecError
impl Unpin for ZstdCodecError
impl !UnwindSafe for ZstdCodecError
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