Skip to main content

RuntimeBootstrapPolicy

Trait RuntimeBootstrapPolicy 

Source
pub trait RuntimeBootstrapPolicy: AllocationPolicy {
    // Required method
    fn runtime_bootstrap_identity(&self) -> &'static str;
}
Expand description

RuntimeBootstrapPolicy

Allocation policy with an explicit semantic identity for runtime bootstrap.

crate::MemoryRuntime binds its successful bootstrap to this identity. Repeated bootstrap is idempotent only when the caller supplies the same sealed declaration snapshot and the same policy identity. Implementations should change the identity whenever policy configuration or semantics change. The identity must be a non-empty static string, normally a versioned framework or application constant.

Required Methods§

Source

fn runtime_bootstrap_identity(&self) -> &'static str

Return the stable semantic identity of this policy configuration.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§