Skip to main content

select_authoritative_slot

Function select_authoritative_slot 

Source
pub fn select_authoritative_slot<'slot, T: ProtectedGenerationSlot>(
    slot0: Option<&'slot T>,
    slot1: Option<&'slot T>,
) -> Result<AuthoritativeSlot<'slot, T>, CommitRecoveryError>
Expand description

Select the highest-generation valid physical slot.

This is an advanced recovery helper for framework or stable-IO owners. It only selects among supplied protected slots; it does not decode or validate the allocation ledger payload.