pub struct TempOutputGuard { /* private fields */ }Expand description
RAII guard that removes the temp WAV file on drop.
Implementations§
Source§impl TempOutputGuard
impl TempOutputGuard
Sourcepub fn new(path: PathBuf) -> Self
pub fn new(path: PathBuf) -> Self
Wrap path in a guard. Use Self::into_inner to keep the file
alive (e.g. for further processing).
Sourcepub fn into_inner(self) -> PathBuf
pub fn into_inner(self) -> PathBuf
Consume the guard and return the path without triggering cleanup.
Trait Implementations§
Source§impl Drop for TempOutputGuard
impl Drop for TempOutputGuard
Auto Trait Implementations§
impl Freeze for TempOutputGuard
impl RefUnwindSafe for TempOutputGuard
impl Send for TempOutputGuard
impl Sync for TempOutputGuard
impl Unpin for TempOutputGuard
impl UnsafeUnpin for TempOutputGuard
impl UnwindSafe for TempOutputGuard
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