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>;
}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>;
}