[go: up one dir, main page]

Trait Mountable

Source
pub trait Mountable<D> {
    // Required method
    fn mount<S: Into<String>, M: Middleware<D>>(
        &mut self,
        mount_point: S,
        middleware: M,
    );
}

Required Methods§

Source

fn mount<S: Into<String>, M: Middleware<D>>( &mut self, mount_point: S, middleware: M, )

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.

Implementors§

Source§

impl<D> Mountable<D> for Nickel<D>
where D: Send + Sync + 'static,