pub enum RecoveryError {
Io(Error),
ShardNotFound(PathBuf),
EventsDirNotFound(PathBuf),
InvalidDbPath(PathBuf),
RebuildFailed(String),
LockTimeout(Duration),
}Expand description
Errors that can occur during recovery operations.
Variants§
Io(Error)
I/O error during recovery.
ShardNotFound(PathBuf)
The shard file does not exist.
EventsDirNotFound(PathBuf)
The events directory does not exist.
InvalidDbPath(PathBuf)
The database path is invalid.
RebuildFailed(String)
Rebuild failed.
LockTimeout(Duration)
Lock timeout exceeded.
Trait Implementations§
Source§impl Debug for RecoveryError
impl Debug for RecoveryError
Source§impl Display for RecoveryError
impl Display for RecoveryError
Source§impl Error for RecoveryError
impl Error for RecoveryError
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 RecoveryError
impl !RefUnwindSafe for RecoveryError
impl Send for RecoveryError
impl Sync for RecoveryError
impl Unpin for RecoveryError
impl UnsafeUnpin for RecoveryError
impl !UnwindSafe for RecoveryError
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