Trait FileExt

Source
pub trait FileExt: AsRawHandle + Sealed {
    // Provided methods
    fn dehydrate<T: RangeBounds<u64>>(&self, range: T) -> Result<()> { ... }
    fn background_dehydrate<T: RangeBounds<u64>>(&self, range: T) -> Result<()> { ... }
    fn in_sync_root() -> Result<bool> { ... }
}
Expand description

An API extension to File.

Provided Methods§

Source

fn dehydrate<T: RangeBounds<u64>>(&self, range: T) -> Result<()>

Dehydrates a placeholder file.

Source

fn background_dehydrate<T: RangeBounds<u64>>(&self, range: T) -> Result<()>

Dehydrates a placeholder file as a system process running in the background. Otherwise, it is called on behalf of a logged-in user.

Source

fn in_sync_root() -> Result<bool>

Returns whether or not the handle is inside of a sync root.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FileExt for File

Implementors§