pub enum WalError {
Io(Error),
InvalidConfig(String),
EntryNotFound(String),
CorruptedData(String),
HeaderTooLarge {
size: usize,
max: usize,
},
}Expand description
Custom error type for WAL operations.
Provides detailed error information for debugging and error handling.
Variants§
Io(Error)
I/O operation failed
InvalidConfig(String)
Invalid configuration provided
EntryNotFound(String)
Entry not found at the specified location
CorruptedData(String)
Data corruption detected
HeaderTooLarge
Header size exceeds maximum allowed
Trait Implementations§
Source§impl Error for WalError
impl Error for WalError
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 Freeze for WalError
impl !RefUnwindSafe for WalError
impl Send for WalError
impl Sync for WalError
impl Unpin for WalError
impl !UnwindSafe for WalError
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