Struct better_panic::Settings
source · [−]pub struct Settings { /* private fields */ }
Expand description
Configuration for panic printing.
Implementations
Controls the “greeting” message of the panic.
Defaults to "The application panicked (crashed)"
.
Controls the verbosity level.
Defaults to Verbosity::get_env()
.
Controls the backtrace position.
Defaults to true
which causes the backtrace to be printed above
the panic.
Controls the most-recent-first behavior.
Defaults to true
which causes the backtrace to be printed above
the panic.
Append the line number as suffix to the filename.
Defaults to false
which causes line numbers to be rendered separately.
Specifically this renders File "foo.rs:42"
instead of
File "foo.rs", line 42
which lets some terminals open the editor
at the right location on click.
Consumes the settings and creates a panic handler.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Settings
impl UnwindSafe for Settings
Blanket Implementations
Mutably borrows from an owned value. Read more