pub struct ErrorWithSource {
pub description: String,
pub source: Error,
}Expand description
An error caused by another error.
Fields§
§description: String§source: ErrorTrait Implementations§
Source§impl Debug for ErrorWithSource
impl Debug for ErrorWithSource
Source§impl Display for ErrorWithSource
impl Display for ErrorWithSource
Source§impl Error for ErrorWithSource
impl Error for ErrorWithSource
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for ErrorWithSource
impl !UnwindSafe for ErrorWithSource
impl Freeze for ErrorWithSource
impl Send for ErrorWithSource
impl Sync for ErrorWithSource
impl Unpin for ErrorWithSource
impl UnsafeUnpin for ErrorWithSource
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