Struct shell::Shell [-] [+] [src]

pub struct Shell {
    // some fields omitted
}

Methods

impl Shell

fn create(out: Box<Write + Send>, config: ShellConfig) -> Shell

fn verbose<F>(&mut self, callback: F) -> Result<()> where F: FnMut(&mut Shell) -> Result<()>

fn concise<F>(&mut self, callback: F) -> Result<()> where F: FnMut(&mut Shell) -> Result<()>

fn say<T: ToString>(&mut self, message: T, color: Color) -> Result<()>

fn say_status<T, U>(&mut self, status: T, message: U, color: Color) -> Result<()> where T: Display, U: Display

Trait Implementations

impl Write for Shell

fn write(&mut self, buf: &[u8]) -> Result<usize>

fn flush(&mut self) -> Result<()>

fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>

fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>

fn by_ref(&mut self) -> &mut Self

fn broadcast<W>(self, other: W) -> Broadcast<Self, W> where W: Write