Skip to main content

RuntimeBootstrapPolicy

Trait RuntimeBootstrapPolicy 

Source
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§

Source

type Error

Policy-specific rejection.

Required Methods§

Source

fn validate_allocation(&self, key: &StableKey) -> Result<(), Self::Error>

Validate one admitted key; numeric placement is owned by Storage.

Source

fn runtime_bootstrap_identity(&self) -> PolicyIdentity

Bind all effective host policy configuration.

Provided Methods§

Source

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".

Implementors§