fast_stm

Type Alias StmResult

Source
pub type StmResult<T> = Result<T, StmError>;
Expand description

StmResult is a result of a single step of a STM calculation.

It informs of success or the type of failure. Normally you should not use it directly. Especially recovering from an error, e.g. by using action1.or(action2) can break the semantics of stm, and cause delayed wakeups or deadlocks.

For the later case, there is the transaction.or(action1, action2), that is safe to use.

Aliased Type§

enum StmResult<T> {
    Ok(T),
    Err(StmError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(StmError)

Contains the error value