Skip to main content

AddRouterExt

Trait AddRouterExt 

Source
pub trait AddRouterExt {
    // Required method
    fn add_router<T>(&mut self, router: impl Into<Arc<T>>) -> &mut Self
       where T: RouterBuilder + 'static;
}

Required Methods§

Source

fn add_router<T>(&mut self, router: impl Into<Arc<T>>) -> &mut Self
where T: RouterBuilder + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl AddRouterExt for AppBuilder

Source§

fn add_router<T>(&mut self, router: impl Into<Arc<T>>) -> &mut Self
where T: RouterBuilder + 'static,

Implementors§