Struct tower_web::routing::Builder [−][src]
pub struct Builder<T> { /* fields omitted */ }Build a set of routes
Methods
impl<T> Builder<T>[src]
impl<T> Builder<T>pub fn new() -> Self[src]
pub fn new() -> SelfCreate a new Builder instance
ⓘImportant traits for &'a mut Wpub fn insert(&mut self, route: Route<T>) -> &mut Self[src]
ⓘImportant traits for &'a mut W
pub fn insert(&mut self, route: Route<T>) -> &mut SelfInsert a route into the route set
pub fn build(&mut self) -> RouteSet<T>[src]
pub fn build(&mut self) -> RouteSet<T>Finalize the route set