ShellExt

Trait ShellExt 

Source
pub trait ShellExt {
    // Required methods
    fn status<T, U>(&self, status: T, message: U)
       where T: Display,
             U: Display;
    fn status_with_color<T, U>(&self, status: T, message: U, color: &Style)
       where T: Display,
             U: Display;
    fn note<T: Display>(&self, message: T);
    fn warn<T: Display>(&self, message: T);
    fn error<T: Display>(&self, message: T);
}

Required Methods§

Source

fn status<T, U>(&self, status: T, message: U)
where T: Display, U: Display,

Source

fn status_with_color<T, U>(&self, status: T, message: U, color: &Style)
where T: Display, U: Display,

Source

fn note<T: Display>(&self, message: T)

Source

fn warn<T: Display>(&self, message: T)

Source

fn error<T: Display>(&self, message: T)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ShellExt for OnceLock<Arc<Mutex<Shell>>>

Source§

fn status<T, U>(&self, status: T, message: U)
where T: Display, U: Display,

Source§

fn status_with_color<T, U>(&self, status: T, message: U, color: &Style)
where T: Display, U: Display,

Source§

fn note<T: Display>(&self, message: T)

Source§

fn warn<T: Display>(&self, message: T)

Source§

fn error<T: Display>(&self, message: T)

Implementors§