Skip to main content

ServerHookList

Type Alias ServerHookList 

Source
pub type ServerHookList = Vec<Arc<dyn Fn(&mut Stream, &mut Context) -> Pin<Box<dyn Future<Output = Status> + Send>> + Sync + Send>>;
Expand description

Type alias for a list of server hook handlers.

Used to store middleware handlers in the request/response processing pipeline.

Aliased Typeยง

pub struct ServerHookList { /* private fields */ }