pub enum ZlibCodecError {
HeaderEncodeFailed {
source: ZlibHeaderError,
},
EncodedDataNotBytes {
dtype: AnyArrayDType,
},
EncodedDataNotOneDimensional {
shape: Vec<usize>,
},
HeaderDecodeFailed {
source: ZlibHeaderError,
},
DecodeExcessiveEncodedData,
DecodeProducedLess,
ZlibDecodeFailed {
source: ZlibDecodeError,
},
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
}
Expand description
Errors that may occur when applying the ZlibCodec
.
Variants§
HeaderEncodeFailed
ZlibCodec
failed to encode the header
Fields
§
source: ZlibHeaderError
Opaque source error
EncodedDataNotBytes
ZlibCodec
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
ZlibCodec
can only decode one-dimensional byte arrays but received
an array of a different shape
HeaderDecodeFailed
ZlibCodec
failed to encode the header
Fields
§
source: ZlibHeaderError
Opaque source error
DecodeExcessiveEncodedData
ZlibCodec
decode consumed less encoded data, which contains trailing
junk
DecodeProducedLess
ZlibCodec
produced less decoded data than expected
ZlibDecodeFailed
ZlibCodec
failed to decode the encoded data
Fields
§
source: ZlibDecodeError
Opaque source error
MismatchedDecodeIntoArray
ZlibCodec
cannot decode into the provided array
Fields
§
source: AnyArrayAssignError
The source of the error
Trait Implementations§
Source§impl Debug for ZlibCodecError
impl Debug for ZlibCodecError
Source§impl Display for ZlibCodecError
impl Display for ZlibCodecError
Source§impl Error for ZlibCodecError
impl Error for ZlibCodecError
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 ZlibCodecError
impl From<AnyArrayAssignError> for ZlibCodecError
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 ZlibCodecError
impl RefUnwindSafe for ZlibCodecError
impl Send for ZlibCodecError
impl Sync for ZlibCodecError
impl Unpin for ZlibCodecError
impl UnwindSafe for ZlibCodecError
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