[][src]Trait rocket::handler::Cloneable

pub trait Cloneable {
    fn clone_handler(&self) -> Box<dyn Handler>;
}

Unfortunate but necessary hack to be able to clone a Box<Handler>.

This trait should never (and cannot, due to coherence) be implemented by any type. Instead, implement Clone. All types that implement Clone and Handler automatically implement Cloneable.

Required methods

fn clone_handler(&self) -> Box<dyn Handler>

Clones self.

Loading content...

Implementors

impl<T: Handler + Clone> Cloneable for T[src]

Loading content...