pub trait IoFutureState<IO: Sized + Unpin>: Sized + Unpin {
// Required method
fn poll(&mut self, cx: &mut Context<'_>, io: &mut IO) -> Poll<Result<()>>;
// Provided method
fn into_future(self, io: IO) -> IoFuture<Self, IO> ⓘ { ... }
}
Required Methods§
Provided Methods§
fn into_future(self, io: IO) -> IoFuture<Self, IO> ⓘ
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.