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<ContainingDirectory> for ContainingDirectory
impl PartialEq<ContainingDirectory> 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<ContainingDirectory> for ContainingDirectory
impl PartialOrd<ContainingDirectory> 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 more