pub enum LcCodecError {
HeaderEncodeFailed {
source: LcHeaderError,
},
LcEncodeFailed {
source: LcCodingError,
},
EncodedDataNotBytes {
dtype: AnyArrayDType,
},
EncodedDataNotOneDimensional {
shape: Vec<usize>,
},
HeaderDecodeFailed {
source: LcHeaderError,
},
DecodeDataLengthMismatch,
LcDecodeFailed {
source: LcCodingError,
},
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
}Expand description
Errors that may occur when applying the LcCodec.
Variants§
HeaderEncodeFailed
LcCodec failed to encode the header
Fields
§
source: LcHeaderErrorOpaque source error
LcEncodeFailed
LcCodec failed to encode the encoded data
Fields
§
source: LcCodingErrorOpaque source error
EncodedDataNotBytes
LcCodec 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
LcCodec can only decode one-dimensional byte arrays but received
an array of a different shape
HeaderDecodeFailed
LcCodec failed to encode the header
Fields
§
source: LcHeaderErrorOpaque source error
DecodeDataLengthMismatch
LcCodec decode produced a different number of bytes than expected
LcDecodeFailed
LcCodec failed to decode the encoded data
Fields
§
source: LcCodingErrorOpaque source error
MismatchedDecodeIntoArray
LcCodec cannot decode into the provided array
Fields
§
source: AnyArrayAssignErrorThe source of the error
Trait Implementations§
Source§impl Debug for LcCodecError
impl Debug for LcCodecError
Source§impl Display for LcCodecError
impl Display for LcCodecError
Source§impl Error for LcCodecError
impl Error for LcCodecError
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 LcCodecError
impl From<AnyArrayAssignError> for LcCodecError
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 LcCodecError
impl RefUnwindSafe for LcCodecError
impl Send for LcCodecError
impl Sync for LcCodecError
impl Unpin for LcCodecError
impl UnsafeUnpin for LcCodecError
impl UnwindSafe for LcCodecError
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