pub trait Writer<T: Send + 'static>: Send {
// Required methods
fn process_slice(&mut self, slice: &[T]);
fn flush(&mut self);
}
Expand description
Writer performs data processing of a fully filled buffer.
Required Methods§
Sourcefn process_slice(&mut self, slice: &[T])
fn process_slice(&mut self, slice: &[T])
Logger calls this function when there is data to be processed. This function is guaranteed to be called sequentially; no internal synchronization is required by default.