Skip to main content

SecretPoolReport

Struct SecretPoolReport 

Source
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: usize

Secret payload bytes in one slot.

§slot_stride: usize

Storage bytes reserved per slot, including integrity metadata.

§capacity_slots: usize

Total fixed slot count.

§live_slots: usize

Slots with a live handle when the report was captured.

§quarantined_slots: usize

Slots permanently withheld after an integrity failure.

§payload_capacity_bytes: usize

Maximum secret payload bytes across all slots.

§reserved_bytes: usize

Slot storage bytes before platform page rounding.

§mapped_bytes: usize

Bytes in the native mapping, or zero for compatibility storage.

§locked_bytes: usize

Bytes successfully locked against ordinary paging.

§mapping_overhead_bytes: usize

Mapping bytes beyond fixed slot storage, normally page-rounding waste.

§locked_overhead_bytes: usize

Locked bytes beyond secret payload capacity, including canaries and page-rounding waste.

§page_granule: usize

Page granule used by the backend, or zero for compatibility storage.

§lock_quota_likely: bool

Whether the underlying protection report associated a failure with likely platform lock-quota pressure.

Implementations§

Source§

impl SecretPoolReport

Source

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.

Source

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.

Source

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

Source§

fn clone(&self) -> SecretPoolReport

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SecretPoolReport

Source§

impl Debug for SecretPoolReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for SecretPoolReport

Source§

impl PartialEq for SecretPoolReport

Source§

fn eq(&self, other: &SecretPoolReport) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for SecretPoolReport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.