Enum zarrs::array::codec::CodecError
source · pub enum CodecError {
IOError(Error),
InvalidByteRangeError(InvalidByteRangeError),
InvalidArraySubsetError(IncompatibleArraySubsetAndShapeError),
InvalidArraySubsetDimensionalityError(ArraySubset, usize),
UnexpectedChunkDecodedSize(usize, u64),
InvalidChecksum,
StorageError(StorageError),
UnsupportedDataType(DataType, String),
Other(String),
}
Expand description
A codec error.
Variants§
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(usize, u64)
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
Other(String)
Other
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)>
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<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<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<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<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.
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> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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