Trait snafu::GenerateImplicitData
source · [−]pub trait GenerateImplicitData {
fn generate() -> Self;
}
Expand description
Construct data to be included as part of an error. The data must require no arguments to be created.
Required Methods
Implementations on Foreign Types
sourceimpl GenerateImplicitData for Option<Backtrace>
impl GenerateImplicitData for Option<Backtrace>
Only create a backtrace when an environment variable is set.
This looks first for the value of RUST_LIB_BACKTRACE
then
RUST_BACKTRACE
. If the value is set to 1
, backtraces will be
enabled.
This value will be tested only once per program execution; changing the environment variable after it has been checked will have no effect.