Trait fs_err::os::unix::fs::FileExt

source ·
pub trait FileExt: Sealed {
    // Required methods
    fn read_at(&self, buf: &mut [u8], offset: u64) -> Result<usize>;
    fn write_at(&self, buf: &[u8], offset: u64) -> Result<usize>;
}
Expand description

Wrapper for std::os::unix::fs::FileExt.

The std traits might be extended in the future (See issue #49961). This trait is sealed and can not be implemented by other crates.

Required Methods§

source

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

Wrapper for FileExt::read_at

source

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

Wrapper for FileExt::write_at

Implementors§