Struct cargo::core::shell::Shell
[−]
[src]
pub struct Shell { /* fields omitted */ }
Methods
impl Shell
[src]
fn create<T: FnMut() -> Box<Write + Send>>(
out_fn: T,
config: ShellConfig
) -> Shell
out_fn: T,
config: ShellConfig
) -> Shell
fn set_color_config(&mut self, color_config: ColorConfig)
fn say<T: ToString>(&mut self, message: T, color: Color) -> CargoResult<()>
fn say_status<T, U>(
&mut self,
status: T,
message: U,
color: Color,
justified: bool
) -> CargoResult<()> where
T: Display,
U: Display,
&mut self,
status: T,
message: U,
color: Color,
justified: bool
) -> CargoResult<()> 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