pub trait Reporter {
// Required methods
fn info(&mut self, msg: &str);
fn warn(&mut self, msg: &str);
fn error(&mut self, msg: &str);
// Provided method
fn retry_wait(
&mut self,
pkg_name: &str,
pkg_version: &str,
attempt: u32,
max_attempts: u32,
delay: Duration,
reason: ErrorClass,
message: &str,
) { ... }
}Required Methods§
fn info(&mut self, msg: &str)
fn warn(&mut self, msg: &str)
fn error(&mut self, msg: &str)
Provided Methods§
Sourcefn retry_wait(
&mut self,
pkg_name: &str,
pkg_version: &str,
attempt: u32,
max_attempts: u32,
delay: Duration,
reason: ErrorClass,
message: &str,
)
fn retry_wait( &mut self, pkg_name: &str, pkg_version: &str, attempt: u32, max_attempts: u32, delay: Duration, reason: ErrorClass, message: &str, )
Narrate a retry-backoff wait to the operator and block until the wait
has elapsed. Called once per retry backoff site after the
EventType::RetryBackoffStarted event has been recorded. The default
implementation preserves the pre-#103 behavior (a single warn() line
then thread::sleep(delay)); richer UIs (e.g., the CLI) override it to
render a live countdown during the wait window. Overrides MUST block
for the full delay before returning — the engine relies on this
method to own the retry sleep. See #103 and #91.