pub enum EdgestoreError {
Show 16 variants
Io(Error),
Checksum {
expected: u32,
got: u32,
},
CorruptRecord(String),
CorruptKey,
WalFull,
WriterBusy,
InvalidOperation(String),
NamespaceTooLong {
len: usize,
max: usize,
},
KeyNotFound,
FormatVersion {
expected: u8,
got: u8,
},
SegmentCorrupt(String),
ManifestCorrupt(String),
CompactionError(String),
ReplicationError(String),
DimensionMismatch {
expected: usize,
actual: usize,
},
CorruptData(String),
}Expand description
All error variants returned by EdgeStore operations.
Variants§
Io(Error)
Underlying I/O error.
Checksum
CRC32C checksum mismatch.
CorruptRecord(String)
Corrupt WAL record.
CorruptKey
Corrupt namespace-key encoding.
WalFull
WAL rotation threshold reached.
WriterBusy
Another writer holds the database lock.
InvalidOperation(String)
Invalid operation (e.g. transaction not active).
NamespaceTooLong
Namespace length exceeds u16::MAX bytes.
KeyNotFound
Key not found (used by storage backends).
FormatVersion
WAL or segment format version mismatch.
SegmentCorrupt(String)
Corrupt segment file.
ManifestCorrupt(String)
Corrupt manifest file.
CompactionError(String)
Compaction failed.
ReplicationError(String)
Replication sync failed.
DimensionMismatch
Vector dimension mismatch.
Fields
CorruptData(String)
General corrupt data error.
Trait Implementations§
Source§impl Debug for EdgestoreError
impl Debug for EdgestoreError
Source§impl Display for EdgestoreError
impl Display for EdgestoreError
Source§impl Error for EdgestoreError
impl Error for EdgestoreError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for EdgestoreError
impl !UnwindSafe for EdgestoreError
impl Freeze for EdgestoreError
impl Send for EdgestoreError
impl Sync for EdgestoreError
impl Unpin for EdgestoreError
impl UnsafeUnpin for EdgestoreError
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