pub struct MultiShell { /* private fields */ }Implementations§
Source§impl MultiShell
impl MultiShell
pub fn new_stdio(verbose: bool) -> MultiShell
pub fn new(out: Shell, err: Shell, verbose: bool) -> MultiShell
pub fn out(&mut self) -> &mut Shell ⓘ
pub fn err(&mut self) -> &mut Shell ⓘ
pub fn say<T: ToString>(&mut self, message: T, color: Color) -> Result<()>
pub fn status<T, U>(&mut self, status: T, message: U) -> Result<()>
pub fn verbose<F>(&mut self, callback: F) -> Result<()>
pub fn concise<F>(&mut self, callback: F) -> Result<()>
pub fn error<T: ToString>(&mut self, message: T) -> Result<()>
pub fn warn<T: ToString>(&mut self, message: T) -> Result<()>
pub fn set_verbose(&mut self, verbose: bool)
pub fn get_verbose(&self) -> bool
pub fn tag<T: Display, U: Display>(&mut self, tag: T, message: U) -> Result<()>
pub fn header<T: Display>(&mut self, message: T) -> Result<()>
pub fn comment<T: Display>(&mut self, message: T) -> Result<()>
pub fn tag_color<T: Display, U: Display>( &mut self, tag: T, message: U, color: Color, ) -> Result<()>
pub fn error_full(&mut self, e: &dyn Error, show_cause: bool) -> Result<()>
Auto Trait Implementations§
impl Freeze for MultiShell
impl !RefUnwindSafe for MultiShell
impl Send for MultiShell
impl !Sync for MultiShell
impl Unpin for MultiShell
impl !UnwindSafe for MultiShell
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more