Trait fuchsia_fs::file::AsyncReadAtExt

source ·
pub trait AsyncReadAtExt: AsyncReadAt {
    // Provided methods
    fn read_at<'a>(
        &'a mut self,
        offset: u64,
        buf: &'a mut [u8],
    ) -> ReadAt<'a, Self>
       where Self: Unpin { ... }
    fn read_at_exact<'a>(
        &'a mut self,
        offset: u64,
        buf: &'a mut [u8],
    ) -> ReadAtExact<'a, Self>
       where Self: Unpin { ... }
    fn read_to_end<'a>(
        &'a mut self,
        buf: &'a mut Vec<u8>,
    ) -> ReadToEnd<'a, Self>
       where Self: Unpin { ... }
}
Expand description

An extension trait which adds utility methods to AsyncReadAt.

Provided Methods§

source

fn read_at<'a>(&'a mut self, offset: u64, buf: &'a mut [u8]) -> ReadAt<'a, Self>
where Self: Unpin,

Returns a future that reads at offset, and fill buf, on success the number of bytes read is returned.

source

fn read_at_exact<'a>( &'a mut self, offset: u64, buf: &'a mut [u8], ) -> ReadAtExact<'a, Self>
where Self: Unpin,

Returns a future that reads at offset, and fill buf exactly.

source

fn read_to_end<'a>(&'a mut self, buf: &'a mut Vec<u8>) -> ReadToEnd<'a, Self>
where Self: Unpin,

Returns a future that appends all data to buf, on success the number of bytes read is returned.

Object Safety§

This trait is not object safe.

Implementors§