Type Alias StmResult

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

Type returned by STM methods that can be aborted with an error.

Such methods must be executed with atomically_or_err.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(StmError<E>)

Contains the error value