pub enum HoronError {
Io(Error),
InvalidFormat(String),
ChecksumMismatch {
expected: u32,
actual: u32,
context: String,
},
CorruptedWalEntry {
seq: u32,
message: String,
},
UnsupportedCompression(u8),
CompressionError(String),
Store(StoreError),
AccessDenied {
key: String,
reason: String,
},
Config(String),
Locked(String),
InvalidOperation(String),
}Expand description
Errors that can occur during Horon operations.
Variants§
Io(Error)
File I/O error.
InvalidFormat(String)
Invalid .htt file (bad magic, unsupported version, corrupted header).
ChecksumMismatch
CRC mismatch on header, snapshot entry, or WAL entry.
Fields
CorruptedWalEntry
WAL entry is corrupted (partial write detected during recovery).
Fields
UnsupportedCompression(u8)
Unsupported compression algorithm.
CompressionError(String)
Compression/decompression failure.
Store(StoreError)
engine Store error (passthrough).
AccessDenied
Access denied by geometric ACL.
Fields
Config(String)
Configuration error.
Locked(String)
The file is already open (advisory-locked) by another process.
InvalidOperation(String)
The requested write cannot be represented in the on-disk format (e.g. key longer than the u16 length field allows).
Trait Implementations§
Source§impl Debug for HoronError
impl Debug for HoronError
Source§impl Display for HoronError
impl Display for HoronError
Source§impl Error for HoronError
impl Error for HoronError
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<Error> for HoronError
impl From<Error> for HoronError
Source§impl From<StoreError> for HoronError
impl From<StoreError> for HoronError
Source§fn from(e: StoreError) -> Self
fn from(e: StoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for HoronError
impl !UnwindSafe for HoronError
impl Freeze for HoronError
impl Send for HoronError
impl Sync for HoronError
impl Unpin for HoronError
impl UnsafeUnpin for HoronError
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