Skip to main content

InterventionResult

Type Alias InterventionResult 

Source
pub type InterventionResult<E> = Result<InterventionAction<E>, BoxError>;
Expand description

What a lifecycle method returns: the action for its event, or an error that the handler’s OnError policy resolves.

Aliased Type§

pub enum InterventionResult<E> {
    Ok(InterventionAction<E>),
    Err(Box<dyn Error + Send + Sync>),
}

Variants§

§1.0.0

Ok(InterventionAction<E>)

Contains the success value

§1.0.0

Err(Box<dyn Error + Send + Sync>)

Contains the error value