cap_async_std::fs

Trait FileExt

Source
pub trait FileExt {
    // Required methods
    fn seek_read(&self, buf: &mut [u8], offset: u64) -> Result<usize, Error>;
    fn seek_write(&self, buf: &[u8], offset: u64) -> Result<usize, Error>;
}
Expand description

Windows-specific extensions to [fs::File].

Required Methods§

Source

fn seek_read(&self, buf: &mut [u8], offset: u64) -> Result<usize, Error>

Seeks to a given position and reads a number of bytes.

Source

fn seek_write(&self, buf: &[u8], offset: u64) -> Result<usize, Error>

Seeks to a given position and writes a number of bytes.

Implementors§