pub struct SecretFile { /* private fields */ }Expand description
A private file holding one secret, removed when this value is dropped.
Dropping is enough for the ordinary paths, including a timeout: the guard lives in the same scope as the call, so unwinding or an early return takes the file with it. A hard kill of the server leaves it behind, which is why it is created under the system temporary directory with a private mode rather than somewhere durable.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SecretFile
impl RefUnwindSafe for SecretFile
impl Send for SecretFile
impl Sync for SecretFile
impl Unpin for SecretFile
impl UnsafeUnpin for SecretFile
impl UnwindSafe for SecretFile
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