Enum git_tempfile::ContainingDirectory
source · [−]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 more
sourceimpl Debug for ContainingDirectory
impl Debug for ContainingDirectory
sourceimpl Ord for ContainingDirectory
impl Ord for ContainingDirectory
sourceimpl PartialEq<ContainingDirectory> for ContainingDirectory
impl PartialEq<ContainingDirectory> for ContainingDirectory
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ContainingDirectory) -> bool
fn ne(&self, other: &ContainingDirectory) -> bool
This method tests for !=
.
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
impl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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