pub enum DiskManagerConfig {
Existing(Arc<DiskManager>),
NewOs,
NewSpecified(Vec<PathBuf>),
Disabled,
}
Expand description
Configuration for temporary disk access
Variants§
Existing(Arc<DiskManager>)
Use the provided DiskManager instance
NewOs
Create a new DiskManager that creates temporary files within a temporary directory chosen by the OS
NewSpecified(Vec<PathBuf>)
Create a new DiskManager that creates temporary files within the specified directories
Disabled
Disable disk manager, attempts to create temporary files will error
Implementations§
source§impl DiskManagerConfig
impl DiskManagerConfig
sourcepub fn new_existing(existing: Arc<DiskManager>) -> Self
pub fn new_existing(existing: Arc<DiskManager>) -> Self
Create temporary files using the provided disk manager
sourcepub fn new_specified(paths: Vec<PathBuf>) -> Self
pub fn new_specified(paths: Vec<PathBuf>) -> Self
Create temporary files in the specified directories
Trait Implementations§
source§impl Clone for DiskManagerConfig
impl Clone for DiskManagerConfig
source§fn clone(&self) -> DiskManagerConfig
fn clone(&self) -> DiskManagerConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more