Module builder

Module builder 

Source
Expand description

Fluent interface for constructing Progress instances.

While simple progress bars can be created via Progress::new_pb or Progress::new_spinner, the ProgressBuilder allows for complex initialization scenarios.

§Key Features

  • Shared State: You can inject existing Arc<Atomic...> instances. This is vital for scenarios where multiple distinct parts of an application need to update or view the exact same underlying counter (e.g., a global download byte counter shared by multiple workers), or you need to integrate with a foreign crate/system.
  • Time Travel: Allows explicitly setting the start time, useful for resuming previously paused tasks or synchronizing start times across a batch of jobs.

Structs§

ProgressBuilder
A builder pattern for constructing complex Progress instances.