Struct cargo::util::errors::VerboseError
source · 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§
source§impl VerboseError
impl VerboseError
pub fn new(inner: Error) -> VerboseError
Trait Implementations§
source§impl Debug for VerboseError
impl Debug for VerboseError
source§impl Display for VerboseError
impl Display for VerboseError
source§impl Error for VerboseError
impl Error for VerboseError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 VerboseError
impl Send for VerboseError
impl Sync for VerboseError
impl Unpin for VerboseError
impl !UnwindSafe for VerboseError
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