Trait Flush

Source
pub trait Flush {
    // Required method
    fn flush_one(&mut self, display: String);
}
Expand description

Simple trait that allows an underlying implementation of Flush to perform some type of IO operation, i.e. writing to file, writing to stdout, etc

Required Methods§

Source

fn flush_one(&mut self, display: String)

Handles a string from another thread, and potentially performs I/O operations such as writing to a file or to stdout

Implementors§