pub trait HasLogging {
    // Provided methods
    fn terminal_out(&self) -> Rc<RefCell<dyn Write>> { ... }
    fn log_file(&self) -> Rc<RefCell<dyn Write>> { ... }
}
Expand description

Implementations of this trait can provide access to an output terminal and a log file.

Provided Methods§

source

fn terminal_out(&self) -> Rc<RefCell<dyn Write>>

Return the output terminal.

The default implementation returns standard out.

source

fn log_file(&self) -> Rc<RefCell<dyn Write>>

Return the log file.

The default implementation returns a sink that writes nothing.

Implementors§