pub enum StmControl {
Failure,
Retry,
}
Expand description
Transaction shortcutting signals handled by the STM framework.
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 Freeze for StmControl
impl RefUnwindSafe for StmControl
impl Send for StmControl
impl Sync for StmControl
impl Unpin for StmControl
impl UnwindSafe for StmControl
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