Trait reproto::output::Output [] [src]

pub trait Output {
    fn lock<'a>(&'a self) -> Box<Write + 'a>;
fn logger(&self) -> Box<Log + 'static>;
fn print(&self, m: &str) -> Result<()>;
fn print_info(&self, m: &str, p: &ErrorPos) -> Result<()>;
fn print_error(&self, m: &str, p: &ErrorPos) -> Result<()>; fn handle_context(&self, ctx: &Context) -> Result<()> { ... }
fn handle_error(&self, e: &Error) -> Result<()> { ... }
fn error(&self, e: &Error) -> Result<()> { ... }
fn error_message(&self, m: &str) -> Result<String> { ... } }

Required Methods

Provided Methods

Handle any errors.

Implementors