pub struct ErrorWithSource {
pub description: String,
pub source: Error,
}
Expand description
An error caused by another error.
Fields§
§description: String
§source: Error
Trait 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 Freeze for ErrorWithSource
impl !RefUnwindSafe for ErrorWithSource
impl Send for ErrorWithSource
impl Sync for ErrorWithSource
impl Unpin for ErrorWithSource
impl !UnwindSafe 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