pub struct BootstrapAdmission<'a> { /* private fields */ }Expand description
Read-only recovered entries and explicit current historical admission.
Implementations§
Source§impl<'a> BootstrapAdmission<'a>
impl<'a> BootstrapAdmission<'a>
Sourcepub const fn recovered_allocations(&self) -> &[(StableKey, AllocationId, u64)]
pub const fn recovered_allocations(&self) -> &[(StableKey, AllocationId, u64)]
Retained names, identities and extents. This grants no memory access.
Sourcepub fn is_declared(&self, key: &StableKey) -> bool
pub fn is_declared(&self, key: &StableKey) -> bool
Whether this bootstrap has selected a key.
Sourcepub fn include_historical(
&mut self,
authority: &str,
key: &str,
) -> Result<(), AdmissionError>
pub fn include_historical( &mut self, authority: &str, key: &str, ) -> Result<(), AdmissionError>
Select a retained name under current grants. An ignored failure still rejects bootstrap.
Auto Trait Implementations§
impl<'a> Freeze for BootstrapAdmission<'a>
impl<'a> RefUnwindSafe for BootstrapAdmission<'a>
impl<'a> Send for BootstrapAdmission<'a>
impl<'a> Sync for BootstrapAdmission<'a>
impl<'a> Unpin for BootstrapAdmission<'a>
impl<'a> UnsafeUnpin for BootstrapAdmission<'a>
impl<'a> UnwindSafe for BootstrapAdmission<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more