pub struct RuntimeIdentity {
pub app_id: AppId,
pub app_family: AppFamily,
pub sync_group: SyncGroup,
pub runtime_contract: RuntimeContractVersion,
pub node_id: NodeId,
}Expand description
Runtime identity shared by nodes of the same application/runtime contract.
Fields§
§app_id: AppIdStable application identity.
app_family: AppFamilyCompatibility family shared by related application builds.
sync_group: SyncGroupSynchronization isolation group.
runtime_contract: RuntimeContractVersionRuntime contract implemented by the application.
node_id: NodeIdIdentity of the Runtime node.
Implementations§
Source§impl RuntimeIdentity
impl RuntimeIdentity
Sourcepub fn check_compatibility(
&self,
other: &RuntimeIdentity,
) -> CompatibilityStatus
pub fn check_compatibility( &self, other: &RuntimeIdentity, ) -> CompatibilityStatus
Checks compatibility excluding node_id, which may differ between nodes.
Sourcepub fn ensure_compatible(
&self,
other: &RuntimeIdentity,
) -> Result<(), RuntimeError>
pub fn ensure_compatible( &self, other: &RuntimeIdentity, ) -> Result<(), RuntimeError>
Returns Ok(()) only for compatible identities.
Trait Implementations§
Source§impl Clone for RuntimeIdentity
impl Clone for RuntimeIdentity
Source§fn clone(&self) -> RuntimeIdentity
fn clone(&self) -> RuntimeIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RuntimeIdentity
impl Debug for RuntimeIdentity
Source§impl<'de> Deserialize<'de> for RuntimeIdentity
impl<'de> Deserialize<'de> for RuntimeIdentity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RuntimeIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RuntimeIdentity
Source§impl PartialEq for RuntimeIdentity
impl PartialEq for RuntimeIdentity
Source§impl Serialize for RuntimeIdentity
impl Serialize for RuntimeIdentity
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for RuntimeIdentity
Auto Trait Implementations§
impl Freeze for RuntimeIdentity
impl RefUnwindSafe for RuntimeIdentity
impl Send for RuntimeIdentity
impl Sync for RuntimeIdentity
impl Unpin for RuntimeIdentity
impl UnsafeUnpin for RuntimeIdentity
impl UnwindSafe for RuntimeIdentity
Blanket Implementations§
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