Skip to main content

RouterExt

Trait RouterExt 

Source
pub(crate) trait RouterExt {
    // Required method
    fn ruma_route<H, T>(self, handler: &'static H) -> Self
       where H: RumaHandler<T>;
}

Required Methods§

Source

fn ruma_route<H, T>(self, handler: &'static H) -> Self
where H: RumaHandler<T>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RouterExt for Router<State>

Source§

fn ruma_route<H, T>(self, handler: &'static H) -> Self
where H: RumaHandler<T>,

Implementors§