Trait TempFileSystem

Source
pub trait TempFileSystem {
    type TempDir: TempDir;

    // Required method
    fn temp_dir<S: AsRef<str>>(&self, prefix: S) -> Result<Self::TempDir>;
}

Required Associated Types§

Required Methods§

Source

fn temp_dir<S: AsRef<str>>(&self, prefix: S) -> Result<Self::TempDir>

Creates a new temporary directory.

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.

Implementors§