pub trait RingBuf { // Required methods fn write(&mut self, data: &[u8]); fn read(&mut self, data: &mut [u8]) -> (usize, bool); }
Ring buffer access methods.
Write into the ring buffer.
Read from the ring buffer.
Returns the number of bytes read and whether data was lost.