pub trait AsyncReadWithTimeoutExt: AsyncRead {
// Provided method
fn read_with_timeout<'a, SLEEP: Sleepble>(
&'a mut self,
buf: &'a mut [u8],
dur: Duration,
) -> ReadWithTimeout<'a, Self> ⓘ
where Self: Unpin { ... }
}
Provided Methods§
fn read_with_timeout<'a, SLEEP: Sleepble>(
&'a mut self,
buf: &'a mut [u8],
dur: Duration,
) -> ReadWithTimeout<'a, Self> ⓘwhere
Self: Unpin,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.