pub type BoxHandler = Arc<dyn Fn(Value) -> Pin<Box<dyn Future<Output = Result<HandlerOutput, CruxErr>> + Send>> + Send + Sync>;Expand description
Type-erased async handler: Value in, HandlerOutput out.
Handlers that don’t carry a confidence score return HandlerOutput::new(value)
(equivalent to confidence 1.0). Use HandlerRegistry::handler for handlers
that emit confidence, or HandlerRegistry::handler_value for simple handlers
that return a plain Value (auto-wrapped for backward compatibility).
Aliased Type§
pub struct BoxHandler { /* private fields */ }