pub enum EngineError {
Show 14 variants
EnvironmentNotOpen,
EnvironmentAlreadyOpen,
EnvironmentClosed,
EnvironmentFailure(String),
InvalidConfig(String),
DatabaseError(String),
LockConflict(String),
DeadlockDetected,
TransactionError(String),
IoError(Error),
DbiError(DbiError),
EvictorError(EvictorError),
CleanerError(CleanerError),
RecoveryError(RecoveryError),
}Expand description
Errors that can occur during engine operations.
Variants§
EnvironmentNotOpen
Environment is not open.
EnvironmentAlreadyOpen
Environment is already open.
EnvironmentClosed
Environment has been closed.
EnvironmentFailure(String)
Environment has failed and is invalid.
InvalidConfig(String)
Invalid configuration parameter.
DatabaseError(String)
Database operation error.
LockConflict(String)
Lock conflict occurred.
DeadlockDetected
Deadlock was detected.
TransactionError(String)
Transaction error.
IoError(Error)
I/O error occurred.
DbiError(DbiError)
Error from the DBI layer.
EvictorError(EvictorError)
Error from the evictor.
CleanerError(CleanerError)
Error from the cleaner.
RecoveryError(RecoveryError)
Error from the recovery subsystem.
Trait Implementations§
Source§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
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<CleanerError> for EngineError
impl From<CleanerError> for EngineError
Source§fn from(source: CleanerError) -> Self
fn from(source: CleanerError) -> Self
Converts to this type from the input type.
Source§impl From<DbiError> for EngineError
impl From<DbiError> for EngineError
Source§impl From<Error> for EngineError
impl From<Error> for EngineError
Source§impl From<EvictorError> for EngineError
impl From<EvictorError> for EngineError
Source§fn from(source: EvictorError) -> Self
fn from(source: EvictorError) -> Self
Converts to this type from the input type.
Source§impl From<RecoveryError> for EngineError
impl From<RecoveryError> for EngineError
Source§fn from(source: RecoveryError) -> Self
fn from(source: RecoveryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EngineError
impl !UnwindSafe for EngineError
impl Freeze for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
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