pub enum PressioCodecError {
UnsupportedDtype(AnyArrayDType),
PressioPoisonedLock,
PressioNonThreadsafeSend,
PressioEncodeFailed {
source: PressioCodingError,
},
EncodeToUnknownDtype,
EncodeToArrayWithoutData,
EncodeToBoolArray,
PressioDecodeFailed {
source: PressioCodingError,
},
DecodeToUnknownDtype,
DecodeToArrayWithoutData,
DecodeToBoolArray,
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
}Expand description
Errors that may occur when applying the PressioCodec.
Variants§
UnsupportedDtype(AnyArrayDType)
PressioCodec does not support the dtype
PressioPoisonedLock
PressioCodec lock was poisoned
PressioNonThreadsafeSend
PressioCodec was used on a different thread with a non-threadsafe compressor
PressioEncodeFailed
PressioCodec failed to encode the data
Fields
§
source: PressioCodingErrorOpaque source error
EncodeToUnknownDtype
PressioCodec encoded to an unknown unsupported dtype
EncodeToArrayWithoutData
PressioCodec encoded to an array without data
EncodeToBoolArray
PressioCodec encoded to a bool array, which is unsupported
PressioDecodeFailed
PressioCodec failed to decode the data
Fields
§
source: PressioCodingErrorOpaque source error
DecodeToUnknownDtype
PressioCodec decoded to an unknown unsupported dtype
DecodeToArrayWithoutData
PressioCodec decoded to an array without data
DecodeToBoolArray
PressioCodec decoded to a bool array, which is unsupported
MismatchedDecodeIntoArray
PressioCodec cannot decode into the provided array
Fields
§
source: AnyArrayAssignErrorThe source of the error
Trait Implementations§
Source§impl Debug for PressioCodecError
impl Debug for PressioCodecError
Source§impl Display for PressioCodecError
impl Display for PressioCodecError
Source§impl Error for PressioCodecError
impl Error for PressioCodecError
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 PressioCodecError
impl From<AnyArrayAssignError> for PressioCodecError
Source§fn from(source: AnyArrayAssignError) -> Self
fn from(source: AnyArrayAssignError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for PressioCodecError
impl Freeze for PressioCodecError
impl Move for PressioCodecError
impl RefUnwindSafe for PressioCodecError
impl Send for PressioCodecError
impl Sync for PressioCodecError
impl Unpin for PressioCodecError
impl UnsafeUnpin for PressioCodecErrorwhere
NonZeroI32Inner: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
impl UnwindSafe for PressioCodecErrorwhere
NonZero<i32>: UnwindSafe,
&'static str: UnwindSafe,
String: UnwindSafe,
RawVecInner: UnwindSafe,
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