pub struct TempDirPath { /* private fields */ }Available on crate feature
std only.Implementations§
Source§impl TempDirPath
impl TempDirPath
pub fn new<T: AsRef<Path>>(path: T) -> Self
Sourcepub fn new_temp_dir() -> Result<Self, Error>
pub fn new_temp_dir() -> Result<Self, Error>
Creates a new temporary directory that will be removed upon dropping
of this object with the default prefix of .tmpirx_ and then a
random UUID.
Sourcepub fn new_temp_dir_prefixed(prefix: &str) -> Result<Self, Error>
pub fn new_temp_dir_prefixed(prefix: &str) -> Result<Self, Error>
Creates a new temporary directory that will be removed upon dropping of this object with the provided prefix and then a random UUID.
Sourcepub fn new_temp_file(&self) -> Result<TempFilePath, Error>
pub fn new_temp_file(&self) -> Result<TempFilePath, Error>
Creates a new temporary file within this directory and returns the path to that file.
Trait Implementations§
Source§impl Debug for TempDirPath
impl Debug for TempDirPath
Source§impl Drop for TempDirPath
impl Drop for TempDirPath
Source§impl From<&PathBuf> for TempDirPath
impl From<&PathBuf> for TempDirPath
Auto Trait Implementations§
impl Freeze for TempDirPath
impl RefUnwindSafe for TempDirPath
impl Send for TempDirPath
impl Sync for TempDirPath
impl Unpin for TempDirPath
impl UnwindSafe for TempDirPath
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more