pub struct RuntimeManifestV1 { /* private fields */ }Expand description
Runtime-owned description of a running host.
Application identity and application metadata are deliberately absent.
Implementations§
Source§impl RuntimeManifestV1
impl RuntimeManifestV1
Sourcepub fn new(
runtime_version: impl Into<String>,
protocol_version: impl Into<String>,
build_id: BuildId,
node_id: NodeId,
core_id: CoreId,
mode: RuntimeMode,
platform: impl Into<String>,
architecture: impl Into<String>,
storage_backend: ProviderId,
health: RuntimeHealth,
core_profile: CoreProfile,
) -> ContractResult<Self>
pub fn new( runtime_version: impl Into<String>, protocol_version: impl Into<String>, build_id: BuildId, node_id: NodeId, core_id: CoreId, mode: RuntimeMode, platform: impl Into<String>, architecture: impl Into<String>, storage_backend: ProviderId, health: RuntimeHealth, core_profile: CoreProfile, ) -> ContractResult<Self>
Creates a runtime-produced manifest from runtime and node facts.
Sourcepub fn with_feature(self, feature: FeatureId) -> Self
pub fn with_feature(self, feature: FeatureId) -> Self
Adds a runtime feature.
Sourcepub fn with_loaded_capability(
self,
capability: CapabilityId,
) -> ContractResult<Self>
pub fn with_loaded_capability( self, capability: CapabilityId, ) -> ContractResult<Self>
Adds a capability loaded by the current host.
Sourcepub fn with_health(self, health: RuntimeHealth) -> ContractResult<Self>
pub fn with_health(self, health: RuntimeHealth) -> ContractResult<Self>
Replaces observable health.
Sourcepub fn with_operational_mode(self, mode: RuntimeOperationalMode) -> Self
pub fn with_operational_mode(self, mode: RuntimeOperationalMode) -> Self
Replaces the current operational mode.
Sourcepub fn manifest_version(&self) -> u16
pub fn manifest_version(&self) -> u16
Returns the manifest schema version.
Sourcepub fn runtime_version(&self) -> &str
pub fn runtime_version(&self) -> &str
Returns the AppCore runtime version.
Sourcepub fn protocol_version(&self) -> &str
pub fn protocol_version(&self) -> &str
Returns the distributed protocol version.
Sourcepub fn mode(&self) -> RuntimeMode
pub fn mode(&self) -> RuntimeMode
Returns the explicit standalone or cluster mode.
Sourcepub fn architecture(&self) -> &str
pub fn architecture(&self) -> &str
Returns the host architecture.
Sourcepub fn storage_backend(&self) -> &ProviderId
pub fn storage_backend(&self) -> &ProviderId
Returns the active storage backend identity.
Sourcepub fn health(&self) -> &RuntimeHealth
pub fn health(&self) -> &RuntimeHealth
Returns observable runtime health.
Sourcepub fn operational_mode(&self) -> RuntimeOperationalMode
pub fn operational_mode(&self) -> RuntimeOperationalMode
Returns the current operational mode.
Sourcepub fn loaded_capabilities(&self) -> &BTreeSet<CapabilityId>
pub fn loaded_capabilities(&self) -> &BTreeSet<CapabilityId>
Returns capabilities loaded by this runtime.
Sourcepub fn core_profile(&self) -> &CoreProfile
pub fn core_profile(&self) -> &CoreProfile
Returns the scheduler-facing core profile.
Sourcepub fn validate(&self) -> ContractResult<()>
pub fn validate(&self) -> ContractResult<()>
Validates runtime facts and cross-field capability declarations.
Trait Implementations§
Source§impl Clone for RuntimeManifestV1
impl Clone for RuntimeManifestV1
Source§fn clone(&self) -> RuntimeManifestV1
fn clone(&self) -> RuntimeManifestV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more