pub struct SecretPoolReport {Show 13 fields
pub slot_size: usize,
pub slot_stride: usize,
pub capacity_slots: usize,
pub live_slots: usize,
pub quarantined_slots: usize,
pub payload_capacity_bytes: usize,
pub reserved_bytes: usize,
pub mapped_bytes: usize,
pub locked_bytes: usize,
pub mapping_overhead_bytes: usize,
pub locked_overhead_bytes: usize,
pub page_granule: usize,
pub lock_quota_likely: bool,
}Expand description
Point-in-time capacity and lock-efficiency report for a fixed-size pool.
Fields§
§slot_size: usizeSecret payload bytes in one slot.
slot_stride: usizeStorage bytes reserved per slot, including integrity metadata.
capacity_slots: usizeTotal fixed slot count.
live_slots: usizeSlots with a live handle when the report was captured.
quarantined_slots: usizeSlots permanently withheld after an integrity failure.
payload_capacity_bytes: usizeMaximum secret payload bytes across all slots.
reserved_bytes: usizeSlot storage bytes before platform page rounding.
mapped_bytes: usizeBytes in the native mapping, or zero for compatibility storage.
locked_bytes: usizeBytes successfully locked against ordinary paging.
mapping_overhead_bytes: usizeMapping bytes beyond fixed slot storage, normally page-rounding waste.
locked_overhead_bytes: usizeLocked bytes beyond secret payload capacity, including canaries and page-rounding waste.
page_granule: usizePage granule used by the backend, or zero for compatibility storage.
lock_quota_likely: boolWhether the underlying protection report associated a failure with likely platform lock-quota pressure.
Implementations§
Source§impl SecretPoolReport
impl SecretPoolReport
Sourcepub const fn storage_efficiency_basis_points(&self) -> Option<u16>
pub const fn storage_efficiency_basis_points(&self) -> Option<u16>
Payload density inside the fixed slot storage, in basis points.
10_000 means every reserved byte is payload. Zero-sized pools return
None.
Sourcepub const fn mapping_efficiency_basis_points(&self) -> Option<u16>
pub const fn mapping_efficiency_basis_points(&self) -> Option<u16>
Payload density inside the native mapping, in basis points.
Compatibility backends without a native mapping return None.
Sourcepub const fn lock_efficiency_basis_points(&self) -> Option<u16>
pub const fn lock_efficiency_basis_points(&self) -> Option<u16>
Payload density inside bytes locked against ordinary paging.
Unlocked and compatibility backends return None.
Trait Implementations§
Source§impl Clone for SecretPoolReport
impl Clone for SecretPoolReport
Source§fn clone(&self) -> SecretPoolReport
fn clone(&self) -> SecretPoolReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more