1 2 3 4 5 6 7 8 9 10 11
/// Pluggable HTTP engine (NestJS “platform agnostic” idea). Only [`AxumHttpEngine`] is implemented today. pub trait HttpServerEngine: Send + Sync + 'static { type Router: Send + 'static; } /// Default engine: Axum [`Router`](axum::Router). pub struct AxumHttpEngine; impl HttpServerEngine for AxumHttpEngine { type Router = axum::Router; }