cap_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§

Source§

impl FileExt for cap_std::fs_utf8::File

Available on crate feature fs_utf8 and Windows only.
Source§

impl FileExt for cap_std::fs::File

Available on Windows only.