Skip to main content

RuntimeManifestV1

Struct RuntimeManifestV1 

Source
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

Source

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.

Source

pub fn with_feature(self, feature: FeatureId) -> Self

Adds a runtime feature.

Source

pub fn with_loaded_capability( self, capability: CapabilityId, ) -> ContractResult<Self>

Adds a capability loaded by the current host.

Source

pub fn with_health(self, health: RuntimeHealth) -> ContractResult<Self>

Replaces observable health.

Source

pub fn with_operational_mode(self, mode: RuntimeOperationalMode) -> Self

Replaces the current operational mode.

Source

pub fn manifest_version(&self) -> u16

Returns the manifest schema version.

Source

pub fn runtime_version(&self) -> &str

Returns the AppCore runtime version.

Source

pub fn protocol_version(&self) -> &str

Returns the distributed protocol version.

Source

pub fn build_id(&self) -> &BuildId

Returns the immutable runtime build identity.

Source

pub fn features(&self) -> &BTreeSet<FeatureId>

Returns enabled runtime features.

Source

pub fn node_id(&self) -> &NodeId

Returns the host node identity.

Source

pub fn core_id(&self) -> &CoreId

Returns the executable core identity.

Source

pub fn mode(&self) -> RuntimeMode

Returns the explicit standalone or cluster mode.

Source

pub fn platform(&self) -> &str

Returns the host platform.

Source

pub fn architecture(&self) -> &str

Returns the host architecture.

Source

pub fn storage_backend(&self) -> &ProviderId

Returns the active storage backend identity.

Source

pub fn health(&self) -> &RuntimeHealth

Returns observable runtime health.

Source

pub fn operational_mode(&self) -> RuntimeOperationalMode

Returns the current operational mode.

Source

pub fn loaded_capabilities(&self) -> &BTreeSet<CapabilityId>

Returns capabilities loaded by this runtime.

Source

pub fn core_profile(&self) -> &CoreProfile

Returns the scheduler-facing core profile.

Source

pub fn validate(&self) -> ContractResult<()>

Validates runtime facts and cross-field capability declarations.

Trait Implementations§

Source§

impl Clone for RuntimeManifestV1

Source§

fn clone(&self) -> RuntimeManifestV1

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RuntimeManifestV1

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for RuntimeManifestV1

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for RuntimeManifestV1

Source§

impl PartialEq for RuntimeManifestV1

Source§

fn eq(&self, other: &RuntimeManifestV1) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for RuntimeManifestV1

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for RuntimeManifestV1

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.