pub enum ContainingDirectory {
Exists,
CreateAllRaceProof(Retries),
}
Expand description
A type expressing the ways we can deal with directories containing a tempfile.
Variants§
Exists
Assume the directory for the tempfile exists and cause failure if it doesn’t
CreateAllRaceProof(Retries)
Create the directory recursively with the given amount of retries in a way that is somewhat race resistant depending on the amount of retries.
Trait Implementations§
source§impl Clone for ContainingDirectory
impl Clone for ContainingDirectory
source§fn clone(&self) -> ContainingDirectory
fn clone(&self) -> ContainingDirectory
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 ContainingDirectory
impl Debug for ContainingDirectory
source§impl Ord for ContainingDirectory
impl Ord for ContainingDirectory
source§fn cmp(&self, other: &ContainingDirectory) -> Ordering
fn cmp(&self, other: &ContainingDirectory) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ContainingDirectory
impl PartialEq for ContainingDirectory
source§impl PartialOrd for ContainingDirectory
impl PartialOrd for ContainingDirectory
impl Copy for ContainingDirectory
impl Eq for ContainingDirectory
impl StructuralPartialEq for ContainingDirectory
Auto Trait Implementations§
impl Freeze for ContainingDirectory
impl RefUnwindSafe for ContainingDirectory
impl Send for ContainingDirectory
impl Sync for ContainingDirectory
impl Unpin for ContainingDirectory
impl UnwindSafe for ContainingDirectory
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)