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§fn eq(&self, other: &ContainingDirectory) -> bool
fn eq(&self, other: &ContainingDirectory) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ContainingDirectory
impl PartialOrd for ContainingDirectory
source§fn partial_cmp(&self, other: &ContainingDirectory) -> Option<Ordering>
fn partial_cmp(&self, other: &ContainingDirectory) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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