1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod controller;
mod module;

pub use controller::Controller;
pub use controller::ControllerDetails;
pub use module::Module;

#[cfg(feature = "axum")]
pub mod axum;

pub type BoxedModule<Ctx, ConCtx, ConRet> =
  Box<dyn Module<Context = Ctx, ControllerContext = ConCtx, ControllerReturn = ConRet>>;

pub type BoxedControllerFn<Ctx, Ret> = Box<dyn Fn(&mut Ctx) -> ControllerDetails<Ret>>;