Trait forma::buffer::layout::Flusher

pub trait Flusher: Debug + Send + Sync {
    // Required method
    fn flush(&self, slice: &mut [u8]);
}
Expand description

Listener that gets called after every write to the buffer. Its main use is to flush freshly written memory slices.

Required Methods§

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

Called after slice was written to.

Implementors§