pub struct HandlerFlags {
pub can_emit_warnings: bool,
pub treat_err_as_bug: bool,
pub dont_buffer_diagnostics: bool,
pub report_delayed_bugs: bool,
pub external_macro_backtrace: bool,
}Fields§
§can_emit_warnings: boolIf false, warning-level lints are suppressed.
(rustc: see --allow warnings and --cap-lints)
treat_err_as_bug: boolIf true, error-level diagnostics are upgraded to bug-level.
(rustc: see -Z treat-err-as-bug)
dont_buffer_diagnostics: boolIf true, immediately emit diagnostics that would otherwise be buffered.
(rustc: see -Z dont-buffer-diagnostics and -Z treat-err-as-bug)
report_delayed_bugs: boolIf true, immediately print bugs registered with delay_span_bug.
(rustc: see -Z report-delayed-bugs)
external_macro_backtrace: boolshow macro backtraces even for non-local macros.
(rustc: see -Z external-macro-backtrace)
Trait Implementations§
source§impl Default for HandlerFlags
impl Default for HandlerFlags
source§fn default() -> HandlerFlags
fn default() -> HandlerFlags
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HandlerFlags
impl RefUnwindSafe for HandlerFlags
impl Send for HandlerFlags
impl Sync for HandlerFlags
impl Unpin for HandlerFlags
impl UnwindSafe for HandlerFlags
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more