ReadWriteByte

Trait ReadWriteByte 

Source
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§

Source

const FRAME_BUF_SIZE: usize = 1_024usize

Required Methods§

Source

fn read_byte(&mut self) -> u8

Source

fn write_bytes(&mut self, buf: &[u8])

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.

Implementors§