Trait async_sleep::rw::AsyncReadWithTimeoutExt
source · pub trait AsyncReadWithTimeoutExt: AsyncRead {
fn read_with_timeout<'a, SLEEP: Sleepble>(
&'a mut self,
buf: &'a mut [u8],
dur: Duration
) -> ReadWithTimeout<'a, Self> ⓘ
where
Self: Unpin,
{ ... }
}