pub enum EbccCodecError {
UnsupportedDtype(AnyArrayDType),
HeaderEncodeFailed {
source: EbccHeaderError,
},
InsufficientDimensions {
shape: Vec<usize>,
},
EbccEncodeFailed {
source: EbccCodingError,
},
SliceEncodeFailed {
source: EbccSliceError,
},
EncodedDataNotBytes {
dtype: AnyArrayDType,
},
EncodedDataNotOneDimensional {
shape: Vec<usize>,
},
HeaderDecodeFailed {
source: EbccHeaderError,
},
DecodeIntoShapeMismatch {
decoded: Vec<usize>,
array: Vec<usize>,
},
SliceDecodeFailed {
source: EbccSliceError,
},
DecodeTooManySlices,
EbccDecodeFailed {
source: EbccCodingError,
},
}Expand description
Errors that may occur when applying the EbccCodec.
Variants§
UnsupportedDtype(AnyArrayDType)
EbccCodec does not support the dtype
HeaderEncodeFailed
EbccCodec failed to encode the header
Fields
source: EbccHeaderErrorOpaque source error
InsufficientDimensions
EbccCodec can only encode >2D data where the last two dimensions
must be at least 32x32 but received an array with an insufficient shape
EbccEncodeFailed
EbccCodec failed to encode the data
Fields
source: EbccCodingErrorOpaque source error
SliceEncodeFailed
EbccCodec failed to encode a 3D slice
Fields
source: EbccSliceErrorOpaque source error
EncodedDataNotBytes
EbccCodec 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
EbccCodec can only decode one-dimensional byte arrays but received
an array of a different shape
HeaderDecodeFailed
EbccCodec failed to decode the header
Fields
source: EbccHeaderErrorOpaque source error
DecodeIntoShapeMismatch
EbccCodec cannot decode into an array with a mismatching shape
Fields
SliceDecodeFailed
EbccCodec failed to decode a 3D slice
Fields
source: EbccSliceErrorOpaque source error
DecodeTooManySlices
EbccCodec failed to decode from an excessive number of slices
EbccDecodeFailed
EbccCodec failed to decode the data
Fields
source: EbccCodingErrorOpaque source error
Trait Implementations§
Source§impl Debug for EbccCodecError
impl Debug for EbccCodecError
Source§impl Display for EbccCodecError
impl Display for EbccCodecError
Source§impl Error for EbccCodecError
impl Error for EbccCodecError
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
Auto Trait Implementations§
impl Freeze for EbccCodecError
impl RefUnwindSafe for EbccCodecError
impl Send for EbccCodecError
impl Sync for EbccCodecError
impl Unpin for EbccCodecError
impl UnsafeUnpin for EbccCodecError
impl UnwindSafe for EbccCodecError
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