🏗️ Elegant & Highly Performant Async Gemini Server Framework for the Modern Age
async framework gemini-protocol protocol gemini rust
at main 12 lines 342 B view raw
1use crate::context::HookContext; 2 3pub trait Module { 4 /// Called right after the module is attached. 5 fn on_attach(&mut self, _: &mut crate::router::Router) {} 6 7 /// Called before a route is mounted. 8 fn on_pre_route(&mut self, _: HookContext) {} 9 10 /// Called after a route is mounted. 11 fn on_post_route(&mut self, _: HookContext) {} 12}