pub enum StmError {
Failure,
Retry,
}
Variants
Failure
The transaction failed because a value changed. It can be retried straight away.
Retry
Retry was called and now the transaction has to wait until at least one of the variables it read have changed, before being retried.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for StmError
impl Send for StmError
impl Sync for StmError
impl Unpin for StmError
impl UnwindSafe for StmError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more