Skip to main content

replacement_code

Function replacement_code 

Source
pub fn replacement_code(
    state: &StoreState,
    identity: Option<&MemberIdentity>,
    location: Option<&StorageConfig>,
) -> Result<Option<RestoreCode>, SyncError>
Expand description

The code a device with the store open saves in place of an unreadable entry (§13.1), or None when it holds no current code: the store has no location or identity, custody holds no member pair, the member was removed, or another device replaced the keys this device holds.