pub struct TempSecretFile { /* private fields */ }Expand description
A temporary file containing secret content, shredded (zeroed) on drop.
Platform selection:
- Linux/WSL2:
memfd_create(anonymous in-memory file, no filesystem path). - macOS: 0o600 temp file in a 0o700 temp directory, shredded on drop.
- Windows: restricted-permission temp directory, shredded on drop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TempSecretFile
impl RefUnwindSafe for TempSecretFile
impl Send for TempSecretFile
impl Sync for TempSecretFile
impl Unpin for TempSecretFile
impl UnsafeUnpin for TempSecretFile
impl UnwindSafe for TempSecretFile
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