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>

Implementors§

source§

impl<IO: AsyncWrite + Unpin> IoFutureState<IO> for BufferWriteState