MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/splashsurf / set_progress_bar

Function set_progress_bar

splashsurf/src/logging.rs:58–60  ·  view source on GitHub ↗

Sets the reference to the current ProgressBar for the writer

(pb: Option<WeakProgressBar>)

Source from the content-addressed store, hash-verified

56
57/// Sets the reference to the current ProgressBar for the writer
58pub(crate) fn set_progress_bar(pb: Option<WeakProgressBar>) {
59 *CURRENT_PROGRESS_BAR.write() = pb;
60}
61
62/// Returns the Progressbar, if it exists, otherwise "None"
63pub(crate) fn get_progress_bar() -> Option<ProgressBar> {

Callers 1

reconstruct_subcommandFunction · 0.85

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected