#[non_exhaustive]pub enum GroupCommitError {
BatchFailed(Error),
PeerFailed,
TransactionFailed(StorageError),
CommitFailed(StorageError),
Shutdown,
LockPoisoned,
}Expand description
Error from a group commit operation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BatchFailed(Error)
This batch’s operations caused an error.
PeerFailed
This batch was rolled back because another batch in the group failed. The caller may retry by resubmitting.
TransactionFailed(StorageError)
The write transaction could not be acquired.
CommitFailed(StorageError)
The commit itself failed (fsync error, etc.).
Shutdown
The database is shutting down.
LockPoisoned
An internal mutex was poisoned (a thread panicked while holding the lock).
Trait Implementations§
Source§impl Debug for GroupCommitError
impl Debug for GroupCommitError
Source§impl Display for GroupCommitError
impl Display for GroupCommitError
Source§impl Error for GroupCommitError
impl Error for GroupCommitError
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()
Source§impl From<GroupCommitError> for Error
Available on crate feature std only.
impl From<GroupCommitError> for Error
Available on crate feature
std only.Source§fn from(err: GroupCommitError) -> Error
fn from(err: GroupCommitError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GroupCommitError
impl !RefUnwindSafe for GroupCommitError
impl Send for GroupCommitError
impl Sync for GroupCommitError
impl Unpin for GroupCommitError
impl UnsafeUnpin for GroupCommitError
impl !UnwindSafe for GroupCommitError
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