pub struct Diagnosed { /* private fields */ }Expand description
Marker type that carries a user-facing tip through the anyhow error chain.
Added automatically by .diagnose() or
.with_diagnosis(). The CLI renderer
extracts it via a single downcast_ref::<Diagnosed>() — no per-type
dispatch needed.
Display returns an empty string so the marker is invisible in the
error chain’s “caused by” output.
Implementations§
Trait Implementations§
Source§impl Error for Diagnosed
impl Error for Diagnosed
1.30.0 · 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 Diagnosed
impl RefUnwindSafe for Diagnosed
impl Send for Diagnosed
impl Sync for Diagnosed
impl Unpin for Diagnosed
impl UnsafeUnpin for Diagnosed
impl UnwindSafe for Diagnosed
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