Struct oasis_core_runtime::protocol::HostInfo
source · pub struct HostInfo {
pub runtime_id: Namespace,
pub consensus_backend: String,
pub consensus_protocol_version: Version,
pub consensus_chain_context: String,
pub local_config: BTreeMap<String, Value>,
}
Expand description
Information about the host environment.
Fields§
§runtime_id: Namespace
Assigned runtime identifier of the loaded runtime.
consensus_backend: String
Name of the consensus backend that is in use for the consensus layer.
consensus_protocol_version: Version
Consensus protocol version that is in use for the consensus layer.
consensus_chain_context: String
Consensus layer chain domain separation context.
local_config: BTreeMap<String, Value>
Node-local runtime configuration.
This configuration must not be used in any context which requires determinism across replicated runtime instances.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HostInfo
impl RefUnwindSafe for HostInfo
impl Send for HostInfo
impl Sync for HostInfo
impl Unpin for HostInfo
impl UnwindSafe for HostInfo
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
)