Skip to main content

read

Function read 

Source
pub async fn read<S: AsyncRead + Unpin>(
    stream: &mut S,
    bytes: &mut [u8],
) -> Result<usize>
Expand description

Read into caller storage; an empty read means transport EOF.