use alloc::vec::Vec; #[allow(dead_code)] pub trait SerialBuffer { fn new(buffer_size: usize) -> Self where Self: Sized; fn write(&mut self, value: u8); fn read(&mut self) -> Option; fn read_all(&mut self) -> Vec; fn reset(&mut self); fn available_to_read(&self) -> usize; }