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