[][src]Trait async_logger::Writer

pub trait Writer: Send {
    fn process_slice(&mut self, slice: &[u8]);
fn flush(&mut self); }

Writer performs data processing of a fully filled buffer.

Required methods

fn process_slice(&mut self, slice: &[u8])

Logger calls this function when there is data to be processed. This function is guaranteed to be called sequentially; no internal syncronization is required by default.

fn flush(&mut self)

Flush the remining data, and finalize writer. This function is called only on writer thread termination.

Loading content...

Implementors

impl Writer for FileWriter[src]

Loading content...