pub struct TmpFile(_);
Expand description

TmpFile is a struct to manipulate a temporary file.

When this struct is dropped, the temporary file itself is automatically deleted.

Implementations

Writes to the temporary file. See fs::write.

Reads a the temporary file. See fs::read.

Opens the temporary file. See File::open.

Opens the temporary file using the provided OpenOptions. See fs::OpenOptions::open.

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.

Should always be Self
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.