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 moresource§impl Debug for DiskManagerConfig
impl Debug for DiskManagerConfig
Auto Trait Implementations§
impl !RefUnwindSafe for DiskManagerConfig
impl Send for DiskManagerConfig
impl Sync for DiskManagerConfig
impl Unpin for DiskManagerConfig
impl !UnwindSafe for DiskManagerConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more