Struct oasis_core_runtime::consensus::registry::Runtime
source · 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: u16
Structure version.
id: Namespace
Globally unique long term identifier of the runtime.
entity_id: PublicKey
Public key identifying the Entity controlling the runtime.
genesis: RuntimeGenesis
Runtime genesis information.
kind: RuntimeKind
Type of runtime.
tee_hardware: TEEHardware
Runtime’s TEE hardware requirements.
deployments: Vec<VersionInfo>
Runtime deployment information.
key_manager: Option<Namespace>
Key manager runtime ID for this runtime.
executor: ExecutorParameters
Parameters of the executor committee.
txn_scheduler: TxnSchedulerParameters
Transaction scheduling parameters of the executor committee.
storage: StorageParameters
Parameters of the storage committee.
admission_policy: RuntimeAdmissionPolicy
Which nodes are allowed to register for this runtime.
constraints: BTreeMap<CommitteeKind, BTreeMap<Role, SchedulingConstraints>>
Node scheduling constraints.
staking: RuntimeStakingParameters
Runtime’s staking-related parameters.
governance_model: RuntimeGovernanceModel
Runtime 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.
source§impl PartialEq for Runtime
impl PartialEq for Runtime
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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.