Trait ctf_pwn::io::cache::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]);
}