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§
Sourcefn dehydrate<T: RangeBounds<u64>>(&self, range: T) -> Result<()>
fn dehydrate<T: RangeBounds<u64>>(&self, range: T) -> Result<()>
Dehydrates a placeholder file.
Sourcefn background_dehydrate<T: RangeBounds<u64>>(&self, range: T) -> Result<()>
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.
Sourcefn in_sync_root() -> Result<bool>
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.