Trait AsyncCacheRead

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