Skip to main content

ErrorHook

Type Alias ErrorHook 

Source
pub type ErrorHook = Arc<dyn Fn(ErrorEvent) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>;
Expand description

Called when a runtime operation fails. Fire-and-forget — the hook’s result is not checked and a failing hook cannot break the runtime.

Aliased Type§

pub struct ErrorHook { /* private fields */ }