#[non_exhaustive]pub enum CodecError {
Show 21 variants
IncompatibleDimensionalityError(IncompatibleDimensionalityError),
IOError(Error),
InvalidByteRangeError(InvalidByteRangeError),
InvalidArraySubsetError(IncompatibleArraySubsetAndShapeError),
InvalidArraySubsetDimensionalityError(ArraySubset, usize),
UnexpectedChunkDecodedSize(InvalidBytesLengthError),
InvalidChecksum,
StorageError(StorageError),
UnsupportedDataType(DataType, String),
InvalidOffsets,
Other(String),
InvalidVariableSizedArrayOffsets,
ExpectedFixedLengthBytes,
ExpectedVariableLengthBytes,
InvalidArrayShape(InvalidArrayShapeError),
InvalidNumberOfElements(InvalidNumberOfElementsError),
SubsetOutOfBounds(SubsetOutOfBoundsError),
RawBytesOffsetsCreate(RawBytesOffsetsCreateError),
RawBytesOffsetsOutOfBounds(RawBytesOffsetsOutOfBoundsError),
DataTypeExtension(DataTypeExtensionError),
DataTypeFillValueError(DataTypeFillValueError),
}
Expand description
A codec error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IncompatibleDimensionalityError(IncompatibleDimensionalityError)
An error creating a subset while decoding
IOError(Error)
An IO error.
InvalidByteRangeError(InvalidByteRangeError)
An invalid byte range was requested.
InvalidArraySubsetError(IncompatibleArraySubsetAndShapeError)
An invalid array subset was requested.
InvalidArraySubsetDimensionalityError(ArraySubset, usize)
An invalid array subset was requested with the wrong dimensionality.
UnexpectedChunkDecodedSize(InvalidBytesLengthError)
The decoded size of a chunk did not match what was expected.
InvalidChecksum
An embedded checksum does not match the decoded value.
StorageError(StorageError)
A store error.
UnsupportedDataType(DataType, String)
Unsupported data type
InvalidOffsets
Offsets are not None
with a fixed length data type.
Other(String)
Other
InvalidVariableSizedArrayOffsets
Invalid variable sized array offsets.
ExpectedFixedLengthBytes
Expected fixed length bytes.
ExpectedVariableLengthBytes
Expected variable length bytes.
InvalidArrayShape(InvalidArrayShapeError)
Invalid array shape.
InvalidNumberOfElements(InvalidNumberOfElementsError)
Invalid number of elements.
SubsetOutOfBounds(SubsetOutOfBoundsError)
Subset out of bounds.
RawBytesOffsetsCreate(RawBytesOffsetsCreateError)
Invalid byte offsets for variable length data.
RawBytesOffsetsOutOfBounds(RawBytesOffsetsOutOfBoundsError)
Variable length array bytes offsets are out of bounds.
DataTypeExtension(DataTypeExtensionError)
A data type extension error.
DataTypeFillValueError(DataTypeFillValueError)
An incompatible fill value error
Trait Implementations§
Source§impl Debug for CodecError
impl Debug for CodecError
Source§impl Display for CodecError
impl Display for CodecError
Source§impl Error for CodecError
impl Error for CodecError
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<&str> for CodecError
impl From<&str> for CodecError
Source§impl From<ArrayBytesFixedDisjointViewCreateError> for CodecError
impl From<ArrayBytesFixedDisjointViewCreateError> for CodecError
Source§fn from(value: ArrayBytesFixedDisjointViewCreateError) -> Self
fn from(value: ArrayBytesFixedDisjointViewCreateError) -> Self
Converts to this type from the input type.
Source§impl From<CodecError> for ArrayError
impl From<CodecError> for ArrayError
Source§fn from(source: CodecError) -> Self
fn from(source: CodecError) -> Self
Converts to this type from the input type.
Source§impl From<DataTypeExtensionError> for CodecError
impl From<DataTypeExtensionError> for CodecError
Source§fn from(source: DataTypeExtensionError) -> Self
fn from(source: DataTypeExtensionError) -> Self
Converts to this type from the input type.
Source§impl From<DataTypeFillValueError> for CodecError
impl From<DataTypeFillValueError> for CodecError
Source§fn from(source: DataTypeFillValueError) -> Self
fn from(source: DataTypeFillValueError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for CodecError
impl From<Error> for CodecError
Source§impl From<IncompatibleArraySubsetAndShapeError> for CodecError
impl From<IncompatibleArraySubsetAndShapeError> for CodecError
Source§fn from(source: IncompatibleArraySubsetAndShapeError) -> Self
fn from(source: IncompatibleArraySubsetAndShapeError) -> Self
Converts to this type from the input type.
Source§impl From<IncompatibleDimensionalityError> for CodecError
impl From<IncompatibleDimensionalityError> for CodecError
Source§fn from(source: IncompatibleDimensionalityError) -> Self
fn from(source: IncompatibleDimensionalityError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidArrayShapeError> for CodecError
impl From<InvalidArrayShapeError> for CodecError
Source§fn from(source: InvalidArrayShapeError) -> Self
fn from(source: InvalidArrayShapeError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidByteRangeError> for CodecError
impl From<InvalidByteRangeError> for CodecError
Source§fn from(source: InvalidByteRangeError) -> Self
fn from(source: InvalidByteRangeError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidBytesLengthError> for CodecError
impl From<InvalidBytesLengthError> for CodecError
Source§fn from(source: InvalidBytesLengthError) -> Self
fn from(source: InvalidBytesLengthError) -> Self
Converts to this type from the input type.
Source§impl From<InvalidNumberOfElementsError> for CodecError
impl From<InvalidNumberOfElementsError> for CodecError
Source§fn from(source: InvalidNumberOfElementsError) -> Self
fn from(source: InvalidNumberOfElementsError) -> Self
Converts to this type from the input type.
Source§impl From<RawBytesOffsetsCreateError> for CodecError
impl From<RawBytesOffsetsCreateError> for CodecError
Source§fn from(source: RawBytesOffsetsCreateError) -> Self
fn from(source: RawBytesOffsetsCreateError) -> Self
Converts to this type from the input type.
Source§impl From<RawBytesOffsetsOutOfBoundsError> for CodecError
impl From<RawBytesOffsetsOutOfBoundsError> for CodecError
Source§fn from(source: RawBytesOffsetsOutOfBoundsError) -> Self
fn from(source: RawBytesOffsetsOutOfBoundsError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for CodecError
impl From<StorageError> for CodecError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Source§impl From<String> for CodecError
impl From<String> for CodecError
Source§impl From<SubsetOutOfBoundsError> for CodecError
impl From<SubsetOutOfBoundsError> for CodecError
Source§fn from(source: SubsetOutOfBoundsError) -> Self
fn from(source: SubsetOutOfBoundsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodecError
impl !RefUnwindSafe for CodecError
impl Send for CodecError
impl Sync for CodecError
impl Unpin for CodecError
impl !UnwindSafe for CodecError
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