Type Alias Stm

Source
pub type Stm<T> = Result<T, StmControl>;
Expand description

Type returned by STM methods that cannot be aborted, the only reason they can fail is to be retried.

Aliased Type§

pub enum Stm<T> {
    Ok(T),
    Err(StmControl),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(StmControl)

Contains the error value