pub struct CoreIdentity {
pub tenant_id: TenantId,
pub cluster_id: ClusterId,
pub core_id: CoreId,
pub instance_id: InstanceId,
pub kind: CoreKind,
pub protocol_version: ProtocolVersion,
pub runtime: RuntimeIdentity,
}Expand description
Distributed identity for a running AppCore instance.
Fields§
§tenant_id: TenantIdTenant isolation boundary.
cluster_id: ClusterIdCluster boundary within the tenant.
core_id: CoreIdStable logical Core identity.
instance_id: InstanceIdUnique running process identity.
kind: CoreKindGeneric Core role.
protocol_version: ProtocolVersionDistributed protocol version.
runtime: RuntimeIdentityEmbedded Runtime/application identity.
Implementations§
Source§impl CoreIdentity
impl CoreIdentity
Sourcepub fn from_runtime_defaults(
runtime: RuntimeIdentity,
) -> Result<CoreIdentity, RuntimeError>
pub fn from_runtime_defaults( runtime: RuntimeIdentity, ) -> Result<CoreIdentity, RuntimeError>
Derives a standalone-compatible distributed identity from Runtime fields.
Sourcepub fn check_compatibility(
&self,
other: &CoreIdentity,
policy: &CoreCompatibilityPolicy,
other_capabilities: &[CapabilityName],
) -> CoreCompatibilityStatus
pub fn check_compatibility( &self, other: &CoreIdentity, policy: &CoreCompatibilityPolicy, other_capabilities: &[CapabilityName], ) -> CoreCompatibilityStatus
Evaluates distributed compatibility against an explicit policy.
Sourcepub fn ensure_compatible(
&self,
other: &CoreIdentity,
policy: &CoreCompatibilityPolicy,
other_capabilities: &[CapabilityName],
) -> Result<(), RuntimeError>
pub fn ensure_compatible( &self, other: &CoreIdentity, policy: &CoreCompatibilityPolicy, other_capabilities: &[CapabilityName], ) -> Result<(), RuntimeError>
Returns success only when distributed compatibility requirements pass.
Trait Implementations§
Source§impl Clone for CoreIdentity
impl Clone for CoreIdentity
Source§fn clone(&self) -> CoreIdentity
fn clone(&self) -> CoreIdentity
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 CoreIdentity
impl Debug for CoreIdentity
Source§impl<'de> Deserialize<'de> for CoreIdentity
impl<'de> Deserialize<'de> for CoreIdentity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CoreIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CoreIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CoreIdentity
Source§impl PartialEq for CoreIdentity
impl PartialEq for CoreIdentity
Source§impl Serialize for CoreIdentity
impl Serialize for CoreIdentity
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 CoreIdentity
Auto Trait Implementations§
impl Freeze for CoreIdentity
impl RefUnwindSafe for CoreIdentity
impl Send for CoreIdentity
impl Sync for CoreIdentity
impl Unpin for CoreIdentity
impl UnsafeUnpin for CoreIdentity
impl UnwindSafe for CoreIdentity
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