pub struct VerboseError {
inner: Error,
}
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
.
Fields§
§inner: Error
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)>
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 VerboseError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes