Skip to main content

ConnHook

Type Alias ConnHook 

Source
pub type ConnHook = Rc<dyn Fn(&Value, &Value, u64) -> Result<(), String>>;
Expand description

A native-thread hook run on the main thread for each freshly-handshaked connection. Set by https to attach its request parser; None for a plain tls server (which emits secureConnect/connection and calls its listener).

Aliased Typeยง

pub struct ConnHook { /* private fields */ }