Skip to main content

RuntimeContext

Trait RuntimeContext 

Source
pub trait RuntimeContext: Send + Sync {
    // Required methods
    fn app_id(&self) -> &AppId;
    fn app_family(&self) -> &AppFamily;
    fn sync_group(&self) -> &SyncGroup;
    fn runtime_contract(&self) -> RuntimeContractVersion;
    fn node_id(&self) -> &NodeId;
}
Expand description

Minimal read-only runtime context contract.

Required Methods§

Source

fn app_id(&self) -> &AppId

Returns the hosted application identity.

Source

fn app_family(&self) -> &AppFamily

Returns the application compatibility family.

Source

fn sync_group(&self) -> &SyncGroup

Returns the synchronization isolation group.

Source

fn runtime_contract(&self) -> RuntimeContractVersion

Returns the Runtime contract version.

Source

fn node_id(&self) -> &NodeId

Returns the current node identity.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§