pub trait RuntimeBootstrapPolicy {
type Error;
// Required methods
fn validate_allocation(&self, key: &StableKey) -> Result<(), Self::Error>;
fn runtime_bootstrap_identity(&self) -> PolicyIdentity;
// Provided method
fn prepare_bootstrap(
&self,
_admission: &mut BootstrapAdmission<'_>,
) -> Result<(), Self::Error> { ... }
}Expand description
Host-specific recovered-state and key admission, before durable commitment.
Required Associated Types§
Required Methods§
Sourcefn validate_allocation(&self, key: &StableKey) -> Result<(), Self::Error>
fn validate_allocation(&self, key: &StableKey) -> Result<(), Self::Error>
Validate one admitted key; numeric placement is owned by Storage.
Sourcefn runtime_bootstrap_identity(&self) -> PolicyIdentity
fn runtime_bootstrap_identity(&self) -> PolicyIdentity
Bind all effective host policy configuration.
Provided Methods§
Sourcefn prepare_bootstrap(
&self,
_admission: &mut BootstrapAdmission<'_>,
) -> Result<(), Self::Error>
fn prepare_bootstrap( &self, _admission: &mut BootstrapAdmission<'_>, ) -> Result<(), Self::Error>
Inspect retained names and optionally select historical keys.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".