Skip to main content

ServerHookMap

Type Alias ServerHookMap 

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

Type alias for a map of server route handlers.

Used for fast lookup of exact-match routes.

Aliased Typeยง

pub struct ServerHookMap { /* private fields */ }