🏗️ Elegant & Highly Performant Async Gemini Server Framework for the Modern Age
async framework gemini-protocol protocol gemini rust
at main 12 lines 322 B view raw
1use crate::context::RouteContext; 2 3#[allow(clippy::module_name_repetitions)] 4pub trait Partial: Send + Sync { 5 fn call(&mut self, context: RouteContext) -> String; 6} 7 8impl<T> Partial for T 9where T: FnMut(RouteContext) -> String + Send + Sync 10{ 11 fn call(&mut self, context: RouteContext) -> String { (*self)(context) } 12}