Trait ProtocolRead

Source
pub trait ProtocolRead: Sized {
    // Required method
    fn read_from<R: Read>(reader: &mut R) -> Result<(Self, usize)>;
}

Required Methods§

Source

fn read_from<R: Read>(reader: &mut R) -> Result<(Self, usize)>

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§