pub struct TmpDir { /* private fields */ }
Expand description

RIIA temporary working directory.

Creating an instance of this represents a directory and dropping it represents removing it.

Platform considerations

Some platforms protect directories from removal while a process is using the directory. Make sure the process is not using the directory when the Drop handler is run.

Implementations

Create a new temporary work directory.

An error is returned if the directory already exists.

Get a reference to the path that this object represents.

Request to keep the work dir.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.