Trait IoFutureState

Source
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§

Source

fn poll(&mut self, cx: &mut Context<'_>, io: &mut IO) -> Poll<Result<()>>

Provided Methods§

Source

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.

Implementors§