pub enum SstBlockCodecError {
EmptySegment,
RowKeysOutOfOrder {
previous: String,
offered: String,
},
StoredLengthMismatch {
expected: u32,
actual: usize,
},
ChecksumMismatch {
expected: u32,
actual: u32,
},
DecodedLengthMismatch {
expected: u32,
actual: usize,
},
Malformed(String),
Codec(String),
}Expand description
Describes a violation encountered while building or validating an SST section.
See metadata segments.
Variants§
EmptySegment
Reports a request to finish a segment before any row was supplied.
RowKeysOutOfOrder
Reports a builder input that would violate durable ascending row-key order.
Fields
StoredLengthMismatch
Reports a range-read body whose byte count disagrees with its handle.
Fields
ChecksumMismatch
Reports stored section bytes that fail the CRC32C recorded in their handle.
Fields
DecodedLengthMismatch
Reports a section whose decompressed size disagrees with its handle.
Fields
Malformed(String)
Reports structurally invalid framing, ordering, UTF-8, or filter metadata.
Codec(String)
Reports a CBOR or zstd failure while encoding or decoding a section.
Trait Implementations§
Source§impl Clone for SstBlockCodecError
impl Clone for SstBlockCodecError
Source§fn clone(&self) -> SstBlockCodecError
fn clone(&self) -> SstBlockCodecError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SstBlockCodecError
impl Debug for SstBlockCodecError
Source§impl Display for SstBlockCodecError
impl Display for SstBlockCodecError
impl Eq for SstBlockCodecError
Source§impl Error for SstBlockCodecError
impl Error for SstBlockCodecError
1.30.0 · 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 PartialEq for SstBlockCodecError
impl PartialEq for SstBlockCodecError
impl StructuralPartialEq for SstBlockCodecError
Auto Trait Implementations§
impl Freeze for SstBlockCodecError
impl RefUnwindSafe for SstBlockCodecError
impl Send for SstBlockCodecError
impl Sync for SstBlockCodecError
impl Unpin for SstBlockCodecError
impl UnsafeUnpin for SstBlockCodecError
impl UnwindSafe for SstBlockCodecError
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