pub enum QpetSperrCodecError {
UnsupportedDtype(AnyArrayDType),
HeaderEncodeFailed {
source: QpetSperrHeaderError,
},
QpetSperrEncodeFailed {
source: QpetSperrCodingError,
},
SliceEncodeFailed {
source: QpetSperrSliceError,
},
EncodedDataNotBytes {
dtype: AnyArrayDType,
},
EncodedDataNotOneDimensional {
shape: Vec<usize>,
},
HeaderDecodeFailed {
source: QpetSperrHeaderError,
},
SliceDecodeFailed {
source: QpetSperrSliceError,
},
DecodeTooManySlices,
SperrDecodeFailed {
source: QpetSperrCodingError,
},
DecodeInvalidShape {
source: ShapeError,
},
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
}Expand description
Errors that may occur when applying the QpetSperrCodec.
Variants§
UnsupportedDtype(AnyArrayDType)
QpetSperrCodec does not support the dtype
HeaderEncodeFailed
QpetSperrCodec failed to encode the header
Fields
source: QpetSperrHeaderErrorOpaque source error
QpetSperrEncodeFailed
QpetSperrCodec failed to encode the data
Fields
source: QpetSperrCodingErrorOpaque source error
SliceEncodeFailed
QpetSperrCodec failed to encode a slice
Fields
source: QpetSperrSliceErrorOpaque source error
EncodedDataNotBytes
QpetSperrCodec 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
QpetSperrCodec can only decode one-dimensional byte arrays but
received an array of a different shape
HeaderDecodeFailed
QpetSperrCodec failed to decode the header
Fields
source: QpetSperrHeaderErrorOpaque source error
SliceDecodeFailed
QpetSperrCodec failed to decode a slice
Fields
source: QpetSperrSliceErrorOpaque source error
DecodeTooManySlices
QpetSperrCodec failed to decode from an excessive number of slices
SperrDecodeFailed
QpetSperrCodec failed to decode the data
Fields
source: QpetSperrCodingErrorOpaque source error
DecodeInvalidShape
QpetSperrCodec decoded into an invalid shape not matching the data size
Fields
source: ShapeErrorThe source of the error
MismatchedDecodeIntoArray
QpetSperrCodec cannot decode into the provided array
Fields
source: AnyArrayAssignErrorThe source of the error
Trait Implementations§
Source§impl Debug for QpetSperrCodecError
impl Debug for QpetSperrCodecError
Source§impl Display for QpetSperrCodecError
impl Display for QpetSperrCodecError
Source§impl Error for QpetSperrCodecError
impl Error for QpetSperrCodecError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<AnyArrayAssignError> for QpetSperrCodecError
impl From<AnyArrayAssignError> for QpetSperrCodecError
Source§fn from(source: AnyArrayAssignError) -> Self
fn from(source: AnyArrayAssignError) -> Self
Auto Trait Implementations§
impl Freeze for QpetSperrCodecError
impl RefUnwindSafe for QpetSperrCodecError
impl Send for QpetSperrCodecError
impl Sync for QpetSperrCodecError
impl Unpin for QpetSperrCodecError
impl UnwindSafe for QpetSperrCodecError
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
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>
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>
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