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

Temporary directory

Implementations

Try to create a temporary directory inside system tmp directory.

Try to create a temporary directory inside the current directory.

Try to create a temporary directory with a given path inside the current directory.

Get the path of the temporary directory.

Trait Implementations

Delete the created directory tree.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.