Skip to main content

bootstrap_default_memory_manager_with_policy

Function bootstrap_default_memory_manager_with_policy 

Source
pub fn bootstrap_default_memory_manager_with_policy<P: RuntimeBootstrapPolicy>(
    policy: &P,
) -> Result<CommittedAllocations, RuntimeBootstrapError<P::Error>>
Expand description

Bootstrap this thread’s default runtime with caller-supplied policy.

Static declarations are sealed once per linked program. Recovery, policy evaluation, persistence, and capability publication occur once for this concrete TLS runtime. Repeated calls must supply the policy identity bound by the successful bootstrap.