Skip to main content

HandlerResult

Type Alias HandlerResult 

Source
pub type HandlerResult = Result<Handled, HandlerError>;
Expand description

The result returned from component handlers.

The Handled side describes normal handler control flow. The HandlerError side describes abnormal outcomes that Kompact should log, recover from, or treat as terminal depending on their classification.

Aliased Type§

pub enum HandlerResult {
    Ok(Handled),
    Err(HandlerError),
}

Variants§

§1.0.0

Ok(Handled)

Contains the success value

§1.0.0

Err(HandlerError)

Contains the error value