pub async fn read_framed<T: DeserializeOwned>(
stream: &mut TcpStream,
) -> Result<T, Error>Expand description
Reads a length-prefixed postcard message from an async stream.
pub async fn read_framed<T: DeserializeOwned>(
stream: &mut TcpStream,
) -> Result<T, Error>Reads a length-prefixed postcard message from an async stream.