Skip to main content

Cloneable

Trait Cloneable 

Source
pub trait Cloneable: Sealed { }
Expand description

Helper trait to make a Route’s Box<dyn Handler> Clone.

This trait cannot be implemented directly. Instead, implement Clone and Handler; all types that implement Clone and Handler automatically implement Cloneable.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> Cloneable for T
where T: Handler + Clone,