Struct TempPathBuf
pub struct TempPathBuf(PathBuf);Available on crate features
client or server only.Expand description
A temporary PathBuf that lives in std::env::temp_dir and is removed on drop.
Tuple Fields§
§0: PathBufImplementations§
§impl TempPathBuf
impl TempPathBuf
pub fn new<S>(name: S) -> TempPathBuf
pub fn new<S>(name: S) -> TempPathBuf
A named socket that results in <tempdir>/<name>
pub fn with_random<S>(name: S) -> TempPathBuf
pub fn with_random<S>(name: S) -> TempPathBuf
Appends a random hex string to the socket name resulting in
<tempdir>/<name>_<xxxxx>
Trait Implementations§
§impl AsRef<Path> for TempPathBuf
impl AsRef<Path> for TempPathBuf
Auto Trait Implementations§
impl Freeze for TempPathBuf
impl RefUnwindSafe for TempPathBuf
impl Send for TempPathBuf
impl Sync for TempPathBuf
impl Unpin for TempPathBuf
impl UnwindSafe for TempPathBuf
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