//! RAII quota guard for TPM reservations.
use Ordering;
use Arc;
use KeyInner;
/// An RAII guard that holds a TPM reservation against a specific key.
///
/// When this lease is dropped — whether the call succeeded, failed, panicked,
/// or was cancelled — the reserved tokens are unconditionally returned via
/// `fetch_sub`. There is no code path where quota can be leaked.