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
sourceimpl Clone for ContainingDirectory
impl Clone for ContainingDirectory
sourcefn clone(&self) -> ContainingDirectory
fn clone(&self) -> ContainingDirectory
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 moresourceimpl Debug for ContainingDirectory
impl Debug for ContainingDirectory
sourceimpl Ord for ContainingDirectory
impl Ord for ContainingDirectory
sourcefn cmp(&self, other: &ContainingDirectory) -> Ordering
fn cmp(&self, other: &ContainingDirectory) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ContainingDirectory> for ContainingDirectory
impl PartialEq<ContainingDirectory> for ContainingDirectory
sourcefn eq(&self, other: &ContainingDirectory) -> bool
fn eq(&self, other: &ContainingDirectory) -> bool
sourceimpl PartialOrd<ContainingDirectory> for ContainingDirectory
impl PartialOrd<ContainingDirectory> for ContainingDirectory
sourcefn partial_cmp(&self, other: &ContainingDirectory) -> Option<Ordering>
fn partial_cmp(&self, other: &ContainingDirectory) -> Option<Ordering>
1.0.0 · sourcefn 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 StructuralEq for ContainingDirectory
impl StructuralPartialEq for ContainingDirectory
Auto Trait Implementations
impl RefUnwindSafe for ContainingDirectory
impl Send for ContainingDirectory
impl Sync for ContainingDirectory
impl Unpin for ContainingDirectory
impl UnwindSafe for ContainingDirectory
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