Trait laminarmq_io::io_types::AsyncRead

source ·
pub trait AsyncRead<B: ByteLender>: SizedEntity + FallibleEntity {
    // Required method
    fn read_at<'a>(
        &'a mut self,
        position: Self::Position,
        size: Self::Size,
    ) -> impl Future<Output = Result<ReadBytes<B::ByteBuf<'a>, Self::Size>, Self::Error>> + 'a
       where B: 'a;
}

Required Methods§

source

fn read_at<'a>( &'a mut self, position: Self::Position, size: Self::Size, ) -> impl Future<Output = Result<ReadBytes<B::ByteBuf<'a>, Self::Size>, Self::Error>> + 'a
where B: 'a,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl AsyncRead<OwnedByteLender<ReadResult>> for BufferedFile

source§

impl AsyncRead<OwnedByteLender<ReadResult>> for DmaFile

source§

impl<B, R> AsyncRead<B> for ReadLimitedAsyncRead<R, R::Size>
where R: AsyncRead<B>, B: ByteLender,

source§

impl<R> AsyncRead<OwnedByteLender<Bytes>> for BufferedReader<R, R::Position, R::Size>
where R: AsyncBufRead,

source§

impl<R, BL> AsyncRead<BufferedByteLender<BL>> for BufferedAppender<R, R::Position, R::Size>
where R: AsyncRead<BL>, BL: ByteLender,

source§

impl<R, BL> AsyncRead<BufferedByteLender<BL>> for BufferedReader<R, R::Position, R::Size>
where R: AsyncRead<BL>, BL: ByteLender,