Skip to main content

TransportFactoryClone

Trait TransportFactoryClone 

Source
pub trait TransportFactoryClone {
    // Required method
    fn clone_box(&self) -> Box<dyn TransportFactory>;
}
Expand description

Helper trait for cloning TransportFactory trait objects

This is a workaround for the fact that Clone cannot be made into a trait object. Implementations should return a boxed clone of themselves.

Required Methods§

Implementors§

Source§

impl<T> TransportFactoryClone for T
where T: TransportFactory + Clone + 'static,