Trait delog::Flusher

source ·
pub trait Flusher: Debug + Send {
    // Required method
    fn flush(&self, logs: &str);
}
Expand description

A way to pass on logs, user supplied.

In embedded, this is intended to pend an interrupt to send the logs off via (USB) serial, semihosting, or similar.

On PC, typical implemenation will just println! or eprintln!

Required Methods§

source

fn flush(&self, logs: &str)

Implementor must handle passed log &str in some hopefully useful way.

Implementors§