pub struct QuotaPermit { /* private fields */ }Expand description
Proof that a file’s size was successfully reserved against a
QuotaTracker.
This is a capability token that records the byte count it reserved, so the
write cap is read from the permit and cannot be re-supplied by a caller
that reserved one quantity and enforces another (GHSA-5j8q). Its only
producers are QuotaTracker::reserve and the crate-private
QuotaTracker::charge — the private field means no other code, in or out of
this crate, can assemble one directly. The extraction pipeline reserves one
when it admits a file, and spends it into an AdmittedSize for the
sink; hardlinks charge theirs in a second pass, after EntryCount
counted them in the first.
Deliberately not Clone/Copy/Default: a permit represents a single
reservation and must not be duplicated or spent more than once.