pub struct CloneableError(pub Error);Expand description
Wrap an error in a new error type that implements Clone
This is useful when two threads/streams share a common fallible source Definite not-found errors preserve typed source-chain detection and their human-readable representation. Timeout and I/O errors preserve their error categories. Other cloned results use Error::Cloned with the string representation of the base error.
Tuple Fields§
§0: ErrorTrait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CloneableError
impl !UnwindSafe for CloneableError
impl Freeze for CloneableError
impl Send for CloneableError
impl Sync for CloneableError
impl Unpin for CloneableError
impl UnsafeUnpin 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