Struct ll::task_tree::TaskTree

source ·
pub struct TaskTree { /* private fields */ }

Implementations

Reporters can use this flag to choose to not report errors. This is useful for cases where there’s a large task chain and every single task reports a partial errors (that gets built up with each task) It would make sense to report it only once at the top level (thrift request, cli call, etc) and only mark other tasks. If set to Some, the message inside is what would be reported by default instead of reporting errors to avoid confusion (e.g. “error was hidden, see …”)

When errors occur, we attach task data to it in the description. If set to false, only task direct data will be attached and not transitive data. This is useful sometimes to remove the noise of transitive data appearing in every error in the chain (e.g. hostname)

Add a custom error formatter to change how error messages look in reporters. Unfortunately it is not configurable per reporter, because errors normally don’t implement Clone and it will be almost impossible to add reference counters to all errors in all chains

Add transitive data to the task tree. This transitive data will be added to every task created in this task tree

If force_flush set to true, this function will block the thread until everything is reported. Useful for cases when the process exits before all async events are reported and stuff is missing from stdout.

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

Returns the argument unchanged.

Calls U::from(self).

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

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.