Skip to main content

HookResult

Type Alias HookResult 

Source
pub type HookResult = Result<(), Box<dyn Error + Send + Sync>>;
Expand description

A specialized result type for lifecycle hooks.

Uses Box<dyn Error + Send + Sync> so that hooks can return any error type without being constrained to a specific error enum.

Aliased Type§

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

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

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

Contains the error value