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: ZlibHeaderErrorOpaque source error
EncodedDataNotBytes
ZlibCodec 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
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: ZlibHeaderErrorOpaque 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: ZlibDecodeErrorOpaque source error
MismatchedDecodeIntoArray
ZlibCodec cannot decode into the provided array
Fields
§
source: AnyArrayAssignErrorThe 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more