struct TokenDir(PathBuf);Expand description
RAII cleanup for the per-boot token directory: removes it (and the plaintext token inside) when
dropped, so the secret is erased on EVERY exit from boot_worker — success, ? error, or async
cancellation (the future dropped mid-await). A manual cleanup on the return paths is skipped on
cancellation and leaks the token on disk (merge-gate finding).
Tuple Fields§
§0: PathBufTrait Implementations§
Auto Trait Implementations§
impl Freeze for TokenDir
impl RefUnwindSafe for TokenDir
impl Send for TokenDir
impl Sync for TokenDir
impl Unpin for TokenDir
impl UnsafeUnpin for TokenDir
impl UnwindSafe for TokenDir
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