Trait rocket::handler::Cloneable

source ·
pub trait Cloneable {
    // Required method
    fn clone_handler(&self) -> Box<dyn Handler>;
Expand description

Unfortunate but necessary hack to be able to clone a Box<dyn 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.