Struct log_update::LogUpdate
[−]
[src]
pub struct LogUpdate<W: Write> { /* fields omitted */ }
Main struct that holds the state for one Write stream
Methods
impl<W: Write> LogUpdate<W>
[src]
fn new(stream: W) -> Result<Self, Error>
Create a new LogUpdate instance.
fn render(&mut self, text: &str) -> Result<(), Error>
Update the log to the provided text.
fn clear(&mut self) -> Result<(), Error>
Clear the logged output.
fn done(&mut self) -> Result<(), Error>
Persist the logged output. Useful if you want to start a new log session below the current one.