pub struct BootstrapAdmission<'a> { /* private fields */ }Expand description
BootstrapAdmission
Bounded preparation context supplied only after validated ledger recovery. Consumers may reject identity transitions or explicitly include known historical allocations before the existing resolve/validate/commit boundary. No memory handles or mutable recovered state are exposed. Failed selections poison this attempt even if a consumer ignores their returned errors.
Implementations§
Source§impl<'a> BootstrapAdmission<'a>
impl<'a> BootstrapAdmission<'a>
Sourcepub const fn declarations(&self) -> &SealedDeclarationSnapshot
pub const fn declarations(&self) -> &SealedDeclarationSnapshot
Original sealed input; preparation cannot remove declarations or add grants.
Sourcepub fn recovered_allocations(
&self,
) -> impl ExactSizeIterator<Item = RecoveredAllocationMetadata<'_>>
pub fn recovered_allocations( &self, ) -> impl ExactSizeIterator<Item = RecoveredAllocationMetadata<'_>>
At most 255 validated allocation summaries, including governance records.
§Panics
Panics only if an internal validated-ledger invariant is broken.
Sourcepub fn is_declared(&self, key: &StableKey) -> bool
pub fn is_declared(&self, key: &StableKey) -> bool
Whether the original input or an earlier selection already names this key.
Sourcepub fn include_historical(
&mut self,
authority: &str,
stable_key: &str,
) -> Result<(), BootstrapAdmissionError>
pub fn include_historical( &mut self, authority: &str, stable_key: &str, ) -> Result<(), BootstrapAdmissionError>
Include a known, nonretired key under an explicit current host grant. Retains its slot and latest schema metadata. Final current policy and all ordinary collision/retirement checks still run after preparation.