Function trillium_api::cancel_on_disconnect

source ยท
pub fn cancel_on_disconnect<F, OH, TFC, Fut>(
    handler: F,
) -> CancelOnDisconnect<F, OH, TFC>
where F: Fn(TFC) -> Fut + Send + Sync + 'static, Fut: Future<Output = OH> + Send + 'static, OH: Handler, TFC: TryFromConn, TFC::Error: Handler,
Expand description

Construct a new CancelOnDisconnect handler.

Alias for CancelOnDisconnect::new