Enum async_stm::StmDynError
source · [−]Expand description
STM error extended with the ability to abort the transaction
with a dynamic error. It is separate so that we rest assured
that atomically
will not throw an error, that only
atomically_or_err
allows abortions.
Variants
Control(StmError)
Regular error.
Abort(Box<dyn Error + Send + Sync>)
Abort the transaction and return an error.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for StmDynError
impl Send for StmDynError
impl Sync for StmDynError
impl Unpin for StmDynError
impl !UnwindSafe for StmDynError
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