pub trait Buffer: AsRef<[u8]> + IndexMut<usize, Output = u8> + Send { // Required method fn put(&mut self, data: &[u8]); }