Skip to main content

FilePath

Trait FilePath 

Source
pub trait FilePath {
    // Required method
    fn file_path(&self) -> &PathBuf;
}
Expand description

Trait for types that can synchronously determine the file path.

Required Methods§

Source

fn file_path(&self) -> &PathBuf

Obtains the path of the temporary file.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FilePath for TempFile

Available on crate feature async-tempfile only.

Implementors§

Source§

impl<T> FilePath for SharedFile<T>
where T: FilePath,