pub enum StmError<E> {
Control(StmControl),
Abort(E),
}
Expand description
STM error extended with the ability to abort the transaction with an error. It is separate so that we rest assured that atomically will not return an error, that only atomically_or_err allows abortions.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for StmError<E>where
E: Freeze,
impl<E> RefUnwindSafe for StmError<E>where
E: RefUnwindSafe,
impl<E> Send for StmError<E>where
E: Send,
impl<E> Sync for StmError<E>where
E: Sync,
impl<E> Unpin for StmError<E>where
E: Unpin,
impl<E> UnwindSafe for StmError<E>where
E: UnwindSafe,
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