pub enum SegmentError {
CorruptFile {
detail: String,
},
InvalidMagic,
ChecksumMismatch {
expected: u32,
actual: u32,
},
UnsupportedVersion {
version: u16,
},
Io(Error),
Encoding(EncodingError),
AlreadyFinalized,
EmptySegment,
RowGroupOutOfRange {
index: usize,
max: usize,
},
ColumnNotFound {
name: String,
},
}Expand description
Errors that can occur during segment operations.
Variants§
CorruptFile
The segment file is corrupt or has an invalid format.
InvalidMagic
Invalid magic bytes in header or footer.
ChecksumMismatch
CRC32c checksum mismatch.
UnsupportedVersion
Unsupported segment version.
Io(Error)
An I/O error occurred.
Encoding(EncodingError)
An encoding error occurred.
AlreadyFinalized
The segment writer has already been finalized.
EmptySegment
No data has been written to the segment.
RowGroupOutOfRange
Row group index is out of range.
ColumnNotFound
Column not found.
Trait Implementations§
Source§impl Debug for SegmentError
impl Debug for SegmentError
Source§impl Display for SegmentError
impl Display for SegmentError
Source§impl Error for SegmentError
impl Error for SegmentError
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<EncodingError> for SegmentError
impl From<EncodingError> for SegmentError
Source§fn from(source: EncodingError) -> Self
fn from(source: EncodingError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for SegmentError
impl From<Error> for SegmentError
Source§impl From<SegmentError> for CacheError
impl From<SegmentError> for CacheError
Source§fn from(source: SegmentError) -> Self
fn from(source: SegmentError) -> Self
Converts to this type from the input type.
Source§impl From<SegmentError> for CompactionError
impl From<SegmentError> for CompactionError
Source§fn from(source: SegmentError) -> Self
fn from(source: SegmentError) -> Self
Converts to this type from the input type.
Source§impl From<SegmentError> for MemtableError
impl From<SegmentError> for MemtableError
Source§fn from(source: SegmentError) -> Self
fn from(source: SegmentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SegmentError
impl !UnwindSafe for SegmentError
impl Freeze for SegmentError
impl Send for SegmentError
impl Sync for SegmentError
impl Unpin for SegmentError
impl UnsafeUnpin for SegmentError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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