pub trait ReadWriteByte {
const FRAME_BUF_SIZE: usize = 1_024usize;
// Required methods
fn read_byte(&mut self) -> u8;
fn write_bytes(&mut self, buf: &[u8]);
}Expand description
A trait for getting the next byte in a byte stream
Provided Associated Constants§
const FRAME_BUF_SIZE: usize = 1_024usize
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.