Skip to main content

SimTransitionResult

Type Alias SimTransitionResult 

Source
pub type SimTransitionResult<S, L, A, Next> = Result<CuSimAppLifecycle<S, L, A, Next>, SimLifecycleError<S, L, A>>;
Expand description

Result of a simulation lifecycle transition: on success the application typed with its new state, on failure SimLifecycleError carrying the application typed Faulted.

Aliased Type§

pub enum SimTransitionResult<S, L, A, Next> {
    Ok(CuSimAppLifecycle<S, L, A, Next>),
    Err(SimLifecycleError<S, L, A>),
}

Variants§

§1.0.0

Ok(CuSimAppLifecycle<S, L, A, Next>)

Contains the success value

§1.0.0

Err(SimLifecycleError<S, L, A>)

Contains the error value