pull_result_from_tcp

Function pull_result_from_tcp 

Source
pub async fn pull_result_from_tcp(
    stream: &mut TcpStream,
    eof: &[u8],
) -> Result<Vec<u8>>
Expand description

Read from the provided TcpStream until we read the value of the eof argument. Return all data read before eof`.