Struct shell::Shell
[−]
[src]
pub struct Shell { // some fields omitted }
Methods
impl Shell
[src]
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_write<T: Display>(&mut self, message: T, color: Color) -> Result<()>
fn say_attr<T: Display>(&mut self, message: T, color: Color, attr: Attr, new_line: bool) -> 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
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0
Writes a formatted string into this writer, returning any error encountered. Read more
fn by_ref(&mut self) -> &mut Self
1.0.0
Creates a "by reference" adaptor for this instance of Write
. Read more