pub struct Root { /* private fields */ }
Expand description

The top-level of the progress tree.

Implementations

Create a new tree with default configuration.

As opposed to Item instances, this type can be closed and sent safely across threads.

Returns the maximum amount of messages we can keep before overwriting older ones.

Returns the current amount of Items stored in the tree. Note that this is at most a guess as tasks can be added and removed in parallel.

Adds a new child tree::Item, whose parent is this instance, with the given name.

This builds a hierarchy of tree::Items, each having their own progress. Use this method to track progress of your first tasks.

Copy the entire progress tree into the given out vector, so that it can be traversed from beginning to end in order of hierarchy.

Copy all messages from the internal ring buffer into the given out vector. Messages are ordered from oldest to newest.

Copy only new messages from the internal ring buffer into the given out vector. Messages are ordered from oldest to newest.

Duplicate all content and return it.

This is an expensive operation, whereas clone() is not as it is shallow.

Trait Implementations

Formats the value using the given formatter. 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

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.