Struct indicatif::ProgressBar [] [src]

pub struct ProgressBar { /* fields omitted */ }

A progress bar or spinner.

Methods

impl ProgressBar
[src]

Creates a new progress bar with a given length.

This progress bar by default draws directly to stdout.

Creates a completely hidden progress bar.

This progress bar still responds to API changes but it does not have a length or render in any way.

Creates a new spinner.

This spinner by default draws directly to stdout. This adds the default spinner style to it.

Overrides the stored style.

Manually ticks the spinner or progress bar.

This automatically happens on any other change to a progress bar.

Advances the position of a progress bar by delta.

Sets the position of the progress bar.

Sets the length of the progress bar.

Sets the current prefix of the progress bar.

Sets the current message of the progress bar.

Finishes the progress bar and leaves the current message.

Finishes the progress bar and sets a message.

Finishes the progress bar and completely clears it.

Sets a different draw target for the progress bar.

This can be used to draw the progress bar to stderr for instance:

let pb = ProgressBar::new(100);
pb.set_draw_target(ProgressDrawTarget::stderr());

Trait Implementations

impl Sync for ProgressBar
[src]

impl Drop for ProgressBar
[src]

A method called when the value goes out of scope. Read more