pub enum DiskManagerConfig {
Existing(Arc<DiskManager>),
NewOs,
NewSpecified(Vec<PathBuf, Global>),
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, Global>)
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() -> DiskManagerConfig
pub fn new() -> DiskManagerConfig
Create temporary files in a temporary directory chosen by the OS
sourcepub fn new_existing(existing: Arc<DiskManager>) -> DiskManagerConfig
pub fn new_existing(existing: Arc<DiskManager>) -> DiskManagerConfig
Create temporary files using the provided disk manager
sourcepub fn new_specified(paths: Vec<PathBuf, Global>) -> DiskManagerConfig
pub fn new_specified(paths: Vec<PathBuf, Global>) -> DiskManagerConfig
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 moresource§impl Debug for DiskManagerConfig
impl Debug for DiskManagerConfig
source§impl Default for DiskManagerConfig
impl Default for DiskManagerConfig
source§fn default() -> DiskManagerConfig
fn default() -> DiskManagerConfig
Returns the “default value” for a type. Read more