pub async fn read_exact_with_timeout<S, B>(
stream: &mut S,
buf: B,
duration: Option<Duration>,
) -> Result<BufResult<(), B>>Expand description
Execute an async read_exact operation with a timeout.
Reads exactly the full buffer or returns an error.