Skip to main content

TransitionResult

Type Alias TransitionResult 

Source
pub type TransitionResult<S, L, A, Next> = Result<CuAppLifecycle<S, L, A, Next>, LifecycleError<S, L, A>>;
Expand description

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

Aliased Type§

pub enum TransitionResult<S, L, A, Next> {
    Ok(CuAppLifecycle<S, L, A, Next>),
    Err(LifecycleError<S, L, A>),
}

Variants§

§1.0.0

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

Contains the success value

§1.0.0

Err(LifecycleError<S, L, A>)

Contains the error value