Trait ErrorClone

Source
pub trait ErrorClone:
    Error
    + Send
    + Sync
    + 'static {
    // Required method
    fn clone_box(&self) -> Box<dyn ErrorClone>;
}
Expand description

An error that can be cloned.

Required Methods§

Source

fn clone_box(&self) -> Box<dyn ErrorClone>

Clone the error.

Trait Implementations§

Source§

impl Clone for Box<dyn ErrorClone>

Source§

fn clone(&self) -> Box<dyn ErrorClone>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

Source§

impl<E> ErrorClone for E
where E: Error + Clone + Send + Sync + 'static,