pub struct Runtime {Show 15 fields
pub v: u16,
pub id: Namespace,
pub entity_id: PublicKey,
pub genesis: RuntimeGenesis,
pub kind: RuntimeKind,
pub tee_hardware: TEEHardware,
pub deployments: Vec<VersionInfo>,
pub key_manager: Option<Namespace>,
pub executor: ExecutorParameters,
pub txn_scheduler: TxnSchedulerParameters,
pub storage: StorageParameters,
pub admission_policy: RuntimeAdmissionPolicy,
pub constraints: BTreeMap<CommitteeKind, BTreeMap<Role, SchedulingConstraints>>,
pub staking: RuntimeStakingParameters,
pub governance_model: RuntimeGovernanceModel,
}Expand description
Runtime.
Fields§
§v: u16Structure version.
id: NamespaceGlobally unique long term identifier of the runtime.
entity_id: PublicKeyPublic key identifying the Entity controlling the runtime.
genesis: RuntimeGenesisRuntime genesis information.
kind: RuntimeKindType of runtime.
tee_hardware: TEEHardwareRuntime’s TEE hardware requirements.
deployments: Vec<VersionInfo>Runtime deployment information.
key_manager: Option<Namespace>Key manager runtime ID for this runtime.
executor: ExecutorParametersParameters of the executor committee.
txn_scheduler: TxnSchedulerParametersTransaction scheduling parameters of the executor committee.
storage: StorageParametersParameters of the storage committee.
admission_policy: RuntimeAdmissionPolicyWhich nodes are allowed to register for this runtime.
constraints: BTreeMap<CommitteeKind, BTreeMap<Role, SchedulingConstraints>>Node scheduling constraints.
staking: RuntimeStakingParametersRuntime’s staking-related parameters.
governance_model: RuntimeGovernanceModelRuntime governance model.
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn active_deployment(&self, now: EpochTime) -> Option<VersionInfo>
pub fn active_deployment(&self, now: EpochTime) -> Option<VersionInfo>
The currently active deployment for the specified epoch if it exists.
Sourcepub fn deployment_for_version(&self, version: Version) -> Option<VersionInfo>
pub fn deployment_for_version(&self, version: Version) -> Option<VersionInfo>
Deployment corresponding to the specified version if it exists.
Trait Implementations§
Source§impl Decode for Runtime
impl Decode for Runtime
Source§fn try_default() -> Result<Self, DecodeError>
fn try_default() -> Result<Self, DecodeError>
Try to decode from a missing/null/undefined value.
Source§fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
Try to decode from a given CBOR value.
§fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
Try to decode from a given CBOR value, calling
try_default in case the value is null or
undefined.Source§impl EncodeAsMap for Runtime
impl EncodeAsMap for Runtime
§fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
fn into_cbor_value_map(self) -> Valuewhere
Self: Sized,
Encode the type into a CBOR Map.
§fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
fn into_cbor_map(self) -> Vec<(Value, Value)>where
Self: Sized,
Encode the type into a CBOR Map, returning the map items.
impl Eq for Runtime
impl StructuralPartialEq for Runtime
Auto Trait Implementations§
impl Freeze for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnwindSafe for Runtime
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.