Skip to main content

async_after_hook_handler

Function async_after_hook_handler 

Source
pub fn async_after_hook_handler<F, Fut>(
    handler: F,
) -> impl for<'a> Fn(&'a AuthContext, &'a ApiRequest, ApiResponse) -> PluginAfterHookFuture<'a> + Send + Sync + Clone + 'static
where F: for<'a> Fn(AuthContext, &'a ApiRequest, ApiResponse) -> Fut + Send + Sync + Clone + 'static, for<'a> Fut: Future<Output = Result<PluginAfterHookAction, RustAuthError>> + Send + 'a,
Expand description

Wraps an async after-hook handler so plugin authors do not need Box::pin.