#[non_exhaustive]pub enum CodecError {
Truncated {
expected: usize,
actual: usize,
},
Corrupt {
detail: String,
},
DecompressFailed {
detail: String,
},
CompressFailed {
detail: String,
},
CodecMismatch {
expected: String,
found: String,
},
LayoutError {
detail: String,
},
UnresolvedAuto,
UnknownCodec {
name: String,
valid: &'static str,
},
}Expand description
Errors that can occur during encoding or decoding.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Truncated
Input data is too short or truncated.
Corrupt
Input data is corrupted (invalid header, bad checksum, etc.).
DecompressFailed
Decompression failed (LZ4/Zstd library error).
CompressFailed
Compression failed (LZ4/Zstd library error).
CodecMismatch
The codec stored in metadata doesn’t match the expected codec.
LayoutError
Invalid layout construction or access (vector quantization).
UnresolvedAuto
ColumnCodec::Auto reached a point where a concrete codec was required.
Auto is a user-facing selection hint that must be resolved to a
concrete codec at flush time. If Auto appears in a serialized
on-disk header or is passed directly to an encoder, the write path
has a bug — ColumnCodec::try_resolve() was not called.
UnknownCodec
A codec name string did not match any canonical form.
Canonical names are lowercase snake_case exactly as returned by
ColumnCodec::as_str(). No case-insensitive matching; no hyphen or
space variants. The error message lists all valid names.
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
1.30.0 · 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
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for CodecError
impl RefUnwindSafe for CodecError
impl Send for CodecError
impl Sync for CodecError
impl Unpin for CodecError
impl UnsafeUnpin 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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.