Trait surpass::layout::Flusher

source ·
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§

source

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

Called after slice was written to.

Implementors§