pub trait RouterBootstrap {
// Required method
fn bootstrap_router(&self, server_name: &str) -> Result<Router, ErrorPtr>;
}Expand description
Trait for creating a Router, usually based on injected Controllers.
pub trait RouterBootstrap {
// Required method
fn bootstrap_router(&self, server_name: &str) -> Result<Router, ErrorPtr>;
}Trait for creating a Router, usually based on injected Controllers.