struct ErrorToHandle {
error: Error,
print_always: bool,
}
Fields§
§error: Error
§print_always: bool
This field is true for “interesting” errors and false for “mundane” errors. If false, we print the above error only if it’s the first one encountered so far while draining the job queue.
At most places that an error is propagated, we set this to false to avoid scenarios where Cargo might end up spewing tons of redundant error messages. For example if an i/o stream got closed somewhere, we don’t care about individually reporting every thread that it broke; just the first is enough.
The exception where print_always is true is that we do report every instance of a rustc invocation that failed with diagnostics. This corresponds to errors from Message::Finish.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorToHandle
impl RefUnwindSafe for ErrorToHandle
impl Send for ErrorToHandle
impl Sync for ErrorToHandle
impl Unpin for ErrorToHandle
impl UnwindSafe for ErrorToHandle
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
§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: 16 bytes