pub struct FdReader<R: AsyncRead + AsyncSeek + Unpin + Send + Sync> { /* private fields */ }
Expand description
FdReader is a wrapper of input fd to implement oio::Read
.
Trait Implementations§
source§impl<R> Read for FdReader<R>where
R: AsyncRead + AsyncSeek + Unpin + Send + Sync,
impl<R> Read for FdReader<R>where R: AsyncRead + AsyncSeek + Unpin + Send + Sync,
source§fn poll_seek(&mut self, cx: &mut Context<'_>, pos: SeekFrom) -> Poll<Result<u64>>
fn poll_seek(&mut self, cx: &mut Context<'_>, pos: SeekFrom) -> Poll<Result<u64>>
TODO: maybe we don’t need to do seek really, just call pread instead.
We need to wait for tokio’s pread support.