Skip to main content

AddControlRouterServiceExt

Trait AddControlRouterServiceExt 

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

Required Methods§

Source

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

Registers a router resolved from a DI Service on the control server.

Source

fn has_control_router_service<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 AddControlRouterServiceExt for AppBuilder

Source§

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

Source§

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

Implementors§