Struct flex_error::tracer_impl::string::StringTracer[][src]

pub struct StringTracer(pub String);
Expand description

A naive string tracer serializes error messages into string and simply concatenate them together. This can be used for example in no_std environment, which may not support more complex error tracers.

Tuple Fields

0: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Creates a new error trace, starting from a source error detail that implements Display. Read more

Adds new error detail to an existing trace.

If the std feature is enabled, the error tracer also provides method to optionally converts itself to a dyn Error. Read more

Create a new error trace from E, also taking ownership of it. Read more

Add a new error trace from E. In the current underlying implementation, this is effectively still has the same behavior as ErrorMessageTracer::add_message. This is because eyre and anyhow do not support adding new set of backtraces to an existing trace. So effectively, currently the error tracers can track at most one backtrace coming from the original error source. Read more

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

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

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.