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>),
}