Enum git_tempfile::AutoRemove [−][src]
pub enum AutoRemove {
Tempfile,
TempfileAndEmptyParentDirectoriesUntil {
boundary_directory: PathBuf,
},
}
Expand description
A type expressing the ways we cleanup after ourselves to remove resources we created. Note that cleanup has no effect if the tempfile is persisted.
Variants
Remove the temporary file after usage if it wasn’t persisted.
Remove the temporary file as well the containing directories if they are empty until the given directory
.
Fields of TempfileAndEmptyParentDirectoriesUntil
boundary_directory: PathBuf
The directory which shall not be removed even if it is empty.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for AutoRemove
impl Send for AutoRemove
impl Sync for AutoRemove
impl Unpin for AutoRemove
impl UnwindSafe for AutoRemove
Blanket Implementations
Mutably borrows from an owned value. Read more