Skip to main content

Module progress

Module progress 

Source
Expand description

Progress of a long startup phase, readable while it runs.

Whatever is doing the work names the phase it is in and counts items through it; a ticker elsewhere decides how often to report. Nothing here writes to a log or to the service manager.

Re-exportsยง

use std::sync::Mutex; ๐Ÿ”’
use std::sync::MutexGuard; ๐Ÿ”’
use std::sync::PoisonError; ๐Ÿ”’
use std::sync::atomic::AtomicU64; ๐Ÿ”’
use std::sync::atomic::Ordering; ๐Ÿ”’
use std::time::Instant; ๐Ÿ”’
use smallstr::SmallString; ๐Ÿ”’
use crate::format_small_string; ๐Ÿ”’
use crate::implement; ๐Ÿ”’
use crate::utils::time::pretty; ๐Ÿ”’

Structsยง

Phase ๐Ÿ”’
One phase, from the moment it is named until the next one replaces it.
Progress
A named unit of long-running work, reported while it runs.

Type Aliasesยง

Line ๐Ÿ”’
Inline budget for one formatted progress line.
Part ๐Ÿ”’
Inline budget for one part of a progress line.