SessionHook

Type Alias SessionHook 

Source
pub type SessionHook = Arc<dyn Fn(State, Arc<dyn SessionWriter>) -> Pin<Box<dyn Future<Output = ()> + Send>> + Send + Sync>;
Expand description

An async session hook: receives a clone of the shared State and the session writer. The shape of phase on_enter/on_exit, phase preparations, and temporal-pattern actions.

Aliased Typeยง

pub struct SessionHook { /* private fields */ }