Skip to main content

ServerControlHookHandler

Type Alias ServerControlHookHandler 

Source
pub type ServerControlHookHandler<T> = Arc<dyn FutureFn<T>>;
Expand description

A type alias for a server control hook handler.

This type represents a thread-safe, reference-counted function that returns a boxed future when invoked. It is used for server lifecycle hooks such as graceful shutdown and wait operations.

Aliased Typeยง

pub struct ServerControlHookHandler<T> { /* private fields */ }