pub fn failure(self, message: &str) {
        if self.quiet {
            return;
        }

        if let Some(bar) = self.bar.as_ref() {
            let (_, fail_style) = get_spinner_styles(self.label_width);
            bar.set_style(fail_style);
            bar.abandon_with_message(message);
        } else {
            let style = Style::new().bold().red();
            self.plain_print(style, message);
        }
    }
/// Marks the task as unsuccessful.
Marks the task as unsuccessful.
Marks the task as unsuccessful .
pub fn failure(self, message: &str) {
        if self.quiet {
            return;
        }
        if let Some(bar) = self.bar.as_ref() {
            let (_, fail_style) = get_spinner_styles(self.label_width);
            bar.set_style(fail_style);
            bar.abandon_with_message(message);
        } else {
            let style = Style::new().bold().red();
            self.plain_print(style, message);
        }
    }
pub fn failure ( self , message : & str ) { if self . quiet { return ; } if let Some ( bar ) = self . bar . as_ref ( ) { let ( _ , fail_style ) = get_spinner_styles ( self . label_width ) ; bar . set_style ( fail_style ) ; bar . abandon_with_message ( message ) ; } else { let style = Style :: new ( ) . bold ( ) . red ( ) ; self . plain_print ( style , message ) ; } }
Marks the task as unsuccessful.
Marks the task as unsuccessful .
self
message
&str