pub enum DiskManagerConfig {
Existing(Arc<DiskManager>),
NewOs,
NewSpecified(Vec<PathBuf>),
}
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
Implementations
sourceimpl 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
sourceimpl Clone for DiskManagerConfig
impl Clone for DiskManagerConfig
sourcefn clone(&self) -> DiskManagerConfig
fn clone(&self) -> DiskManagerConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more