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§

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Converts to this type from the input type.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

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