RouterBootstrap

Trait RouterBootstrap 

Source
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.

Required Methods§

Source

fn bootstrap_router(&self, server_name: &str) -> Result<Router, ErrorPtr>

Creates a new Router.

Trait Implementations§

Implementors§