Skip to main content

StateMachineResult

Type Alias StateMachineResult 

Source
pub type StateMachineResult<S, E> = Result<S, StateMachineError<S, E>>;
Expand description

Result returned by event-triggering state machine operations.

S is the state type and E is the event type.

Aliased Type§

pub enum StateMachineResult<S, E> {
    Ok(S),
    Err(StateMachineError<S, E>),
}

Variants§

§1.0.0

Ok(S)

Contains the success value

§1.0.0

Err(StateMachineError<S, E>)

Contains the error value