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§

source

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

Provided Methods§

source

fn into_future(self, io: IO) -> IoFutureWithOutput<Self, IO, O>

Implementors§

source§

impl<IO: AsyncRead + Unpin, O> IoFutureWithOutputState<IO, O> for BufferDecodeState<O>