pub struct CloneableError { /* private fields */ }
Expand description
A lossy way to have any error be clonable.
Implementations§
Trait Implementations§
Source§impl Clone for CloneableError
impl Clone for CloneableError
Source§fn clone(&self) -> CloneableError
fn clone(&self) -> CloneableError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CloneableError
impl Debug for CloneableError
Source§impl Display for CloneableError
impl Display for CloneableError
Source§impl Error for CloneableError
impl Error for CloneableError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations§
impl Freeze for CloneableError
impl RefUnwindSafe for CloneableError
impl Send for CloneableError
impl Sync for CloneableError
impl Unpin for CloneableError
impl UnwindSafe for CloneableError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<E> ErrorClone for E
impl<E> ErrorClone for E
Source§fn clone_box(&self) -> Box<dyn ErrorClone>
fn clone_box(&self) -> Box<dyn ErrorClone>
Clone the error.