pub struct VerboseError { /* private fields */ }
Expand description
An error wrapper for errors that should only be displayed with --verbose
.
This should only be used in rare cases. When emitting this error, you
should have a normal error higher up the error-cause chain (like “could
not compile foo
”), so at least something gets printed without
--verbose
.
Implementations
sourceimpl VerboseError
impl VerboseError
pub fn new(inner: Error) -> VerboseError
Trait Implementations
sourceimpl Debug for VerboseError
impl Debug for VerboseError
sourceimpl Display for VerboseError
impl Display for VerboseError
sourceimpl Error for VerboseError
impl Error for VerboseError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn 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 VerboseError
impl Send for VerboseError
impl Sync for VerboseError
impl Unpin for VerboseError
impl UnwindSafe for VerboseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more