Skip to main content

AddRouterExt

Trait AddRouterExt 

Source
pub trait AddRouterExt {
    // Required methods
    fn add_router<T>(&mut self) -> &mut Self
       where T: Service<Handle = Arc<T>> + RouterBuilder + 'static;
    fn has_router<T>(&self) -> bool
       where T: Service<Handle = Arc<T>> + RouterBuilder + 'static;
}

Required Methods§

Source

fn add_router<T>(&mut self) -> &mut Self
where T: Service<Handle = Arc<T>> + RouterBuilder + 'static,

Source

fn has_router<T>(&self) -> bool
where T: Service<Handle = Arc<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) -> &mut Self
where T: Service<Handle = Arc<T>> + RouterBuilder + 'static,

Source§

fn has_router<T>(&self) -> bool
where T: Service<Handle = Arc<T>> + RouterBuilder + 'static,

Implementors§