Skip to content
API REFERENCEUsage guides →

cellpack::runtime::init ​

fn

Module contract · All interfaces

At a glance ​

pub fn init(options: RuntimeOptions) -> Result<&'static Runtime>

Binds the process settings. Calling it again with the same options returns the existing binding; different options are an error, as is any call after another entry point bound the settings from the environment with different options.

The binding is never replaced: a mismatched call reports Error::InvalidOptions and leaves the first binding in force.

Contract reference ​

See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.

Definition