pub trait FileExt {
    fn copy_to(&self, to: &File) -> Result<u64>;
fn update_timestamps(&self) -> Result<()>;
fn pread_exact(&self, buf: &mut [u8], position: usize) -> Result<()>; }
Expand description

Helper functions for std::fs::File

Required methods

👎 Deprecated:

Use std::io::copy instead

Copy the entire contents of self to to. This uses operating system specific fast paths if available.

Update timestamps (both access and modification) to the current time.

Read the exact number of bytes required to fill buf starting from position, without affecting file offset.

Implementations on Foreign Types

👎 Deprecated:

Use std::io::copy instead

Implementors