pub trait AsyncCacheRead: AsyncRead {
    // Required methods
    fn poll_reader(
        self: Pin<&mut Self>,
        cx: &mut Context<'_>,
        buf: &mut ReadBuf<'_>
    ) -> Poll<Result<()>>;
    fn consume(self: Pin<&mut Self>, amt: usize);
    fn restore(self: Pin<&mut Self>, data: &[u8]);
}

Required Methods§

source

fn poll_reader( self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &mut ReadBuf<'_> ) -> Poll<Result<()>>

source

fn consume(self: Pin<&mut Self>, amt: usize)

source

fn restore(self: Pin<&mut Self>, data: &[u8])

Implementors§