Trait DynamicTcpStream

Source
pub trait DynamicTcpStream {
    type Err;

    // Required methods
    fn read_entire_message(&mut self) -> Result<Vec<u8>, Self::Err>;
    fn write_entire_message(&mut self, msg: &[u8]) -> Result<(), Self::Err>;
}

Required Associated Types§

Required Methods§

Source

fn read_entire_message(&mut self) -> Result<Vec<u8>, Self::Err>

Source

fn write_entire_message(&mut self, msg: &[u8]) -> Result<(), Self::Err>

Implementations on Foreign Types§

Source§

impl DynamicTcpStream for TcpStream

Implementors§