Skip to main content

Reporter

Trait Reporter 

Source
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,
    ) { ... }
}
Expand description

Reporter interface shared with the host crate. Parallel publish forwards status updates and warnings through this trait.

Required Methods§

Source

fn info(&mut self, msg: &str)

Source

fn warn(&mut self, msg: &str)

Source

fn error(&mut self, msg: &str)

Provided Methods§

Source

fn retry_wait( &mut self, pkg_name: &str, pkg_version: &str, attempt: u32, max_attempts: u32, delay: Duration, reason: ErrorClass, message: &str, )

Implementors§