pub fn progress_bar(total: u64, suffix: &str) -> ProgressBarExpand description
Build a styled progress bar for a scan of total items.
The suffix is appended after the pos/len counter (e.g. "ports scanned"
or "addresses scanned"), so both the port and address scanners can share
the same bar style.
ยงExamples
use asphyxia::utils::progress_bar;
let pb = progress_bar(100, "ports scanned");
pb.finish_and_clear();