restify_core/
controller.rs1use std::borrow::Cow;
2
3pub trait Controller {
4 type Context;
5 type Return;
6
7 fn configure(ctx: &mut Self::Context) -> ControllerDetails<Self::Return>;
8}
9
10pub struct ControllerDetails<Ret> {
11 pub path: Cow<'static, str>,
12 pub return_: Ret,
13}