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

Function get_progress_bar

splashsurf/src/logging.rs:63–65  ·  view source on GitHub ↗

Returns the Progressbar, if it exists, otherwise "None"

()

Source from the content-addressed store, hash-verified

61
62/// Returns the Progressbar, if it exists, otherwise "None"
63pub(crate) fn get_progress_bar() -> Option<ProgressBar> {
64 return CURRENT_PROGRESS_BAR.read().as_ref()?.upgrade();
65}
66
67/// Prints an anyhow error and its full error chain using the log::error macro
68pub(crate) fn log_error(err: &anyhow::Error) {

Callers 2

handleMethod · 0.85
reconstruct_subcommandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected