Function create_progress_bar

Source
pub fn create_progress_bar(
    quiet_mode: bool,
    msg: String,
    length: Option<u64>,
    is_parallel: bool,
) -> ProgressBar
Expand description

Make a custom progress bar for file downloads

§Arguments

  • quiet_mode - If true, the progress bar will be hidden
  • msg - Message to be displayed on the bar
  • length - Total file size in bytes (optional)
  • is_parallel - If true, shows parallel download information

§Returns

A progress bar configured with a custom style