pub struct ProtocolMachineSemanticObjects {Show 18 fields
pub schema_version: String,
pub operation_instances: Vec<OperationInstance>,
pub outstanding_effects: Vec<OutstandingEffect>,
pub semantic_handoffs: Vec<SemanticHandoff>,
pub transformation_obligations: Vec<TransformationObligation>,
pub authoritative_reads: Vec<AuthoritativeRead>,
pub observed_reads: Vec<ObservedRead>,
pub materialization_proofs: Vec<MaterializationProof>,
pub canonical_handles: Vec<CanonicalHandle>,
pub publication_events: Vec<PublicationEvent>,
pub prestate_bindings: Vec<PrestateBinding>,
pub agreement_profiles: Vec<AgreementProfile>,
pub agreement_contracts: Vec<AgreementContract>,
pub agreement_evidence: Vec<AgreementEvidence>,
pub agreement_states: Vec<AgreementState>,
pub regions: Vec<Region>,
pub progress_contracts: Vec<ProgressContract>,
pub progress_transitions: Vec<ProgressTransition>,
}Expand description
Canonical bundle of semantic objects exported by the protocol machine.
Fields§
§schema_version: String§operation_instances: Vec<OperationInstance>§outstanding_effects: Vec<OutstandingEffect>§semantic_handoffs: Vec<SemanticHandoff>§transformation_obligations: Vec<TransformationObligation>§observed_reads: Vec<ObservedRead>§materialization_proofs: Vec<MaterializationProof>§canonical_handles: Vec<CanonicalHandle>§publication_events: Vec<PublicationEvent>§prestate_bindings: Vec<PrestateBinding>§agreement_profiles: Vec<AgreementProfile>§agreement_contracts: Vec<AgreementContract>§agreement_evidence: Vec<AgreementEvidence>§agreement_states: Vec<AgreementState>§regions: Vec<Region>§progress_contracts: Vec<ProgressContract>§progress_transitions: Vec<ProgressTransition>Implementations§
Source§impl ProtocolMachineSemanticObjects
impl ProtocolMachineSemanticObjects
Sourcepub const fn finalization(&self) -> ProtocolMachineFinalization<'_>
pub const fn finalization(&self) -> ProtocolMachineFinalization<'_>
Stable derived finalization subsystem for protocol-critical truth transitions.
Require one semantic-path read to be authoritative rather than observational.
§Errors
Returns a descriptive error when the read is observational or unknown.
Sourcepub fn require_canonical_handle(
&self,
handle_id: &str,
) -> Result<&CanonicalHandle, String>
pub fn require_canonical_handle( &self, handle_id: &str, ) -> Result<&CanonicalHandle, String>
Require one strong canonical handle on a parity-critical path.
§Errors
Returns a descriptive error when the handle is missing.
Sourcepub fn parity_critical_operations_have_canonical_handles(&self) -> bool
pub fn parity_critical_operations_have_canonical_handles(&self) -> bool
Whether every parity-critical operation has an explicit canonical handle path.
Sourcepub fn parity_critical_operations_have_progress_contracts(&self) -> bool
pub fn parity_critical_operations_have_progress_contracts(&self) -> bool
Whether every parity-critical operation has a matching progress contract.
Sourcepub fn named_agreement_profile_available(&self, profile_name: &str) -> bool
pub fn named_agreement_profile_available(&self, profile_name: &str) -> bool
Whether one named agreement profile is present in the semantic bundle.
Sourcepub fn agreement_contract_for_operation(
&self,
operation: &OperationInstance,
) -> bool
pub fn agreement_contract_for_operation( &self, operation: &OperationInstance, ) -> bool
Whether one operation has a matching agreement contract.
Sourcepub fn agreement_state_for_operation(
&self,
operation: &OperationInstance,
) -> bool
pub fn agreement_state_for_operation( &self, operation: &OperationInstance, ) -> bool
Whether one operation has a matching agreement state.
Sourcepub fn prestate_binding_for_operation(
&self,
operation: &OperationInstance,
) -> bool
pub fn prestate_binding_for_operation( &self, operation: &OperationInstance, ) -> bool
Whether one operation has a stable prestate binding.
Sourcepub fn agreement_evidence_for_operation(
&self,
operation: &OperationInstance,
) -> bool
pub fn agreement_evidence_for_operation( &self, operation: &OperationInstance, ) -> bool
Whether one operation has explicit agreement evidence.
Sourcepub fn provisional_agreement_usable(
&self,
operation: &OperationInstance,
) -> bool
pub fn provisional_agreement_usable( &self, operation: &OperationInstance, ) -> bool
Whether one operation is usable under its current agreement state.
Sourcepub fn finalization_backed(&self, operation: &OperationInstance) -> bool
pub fn finalization_backed(&self, operation: &OperationInstance) -> bool
Whether one operation has explicit finalization backing.
Trait Implementations§
Source§impl Clone for ProtocolMachineSemanticObjects
impl Clone for ProtocolMachineSemanticObjects
Source§fn clone(&self) -> ProtocolMachineSemanticObjects
fn clone(&self) -> ProtocolMachineSemanticObjects
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for ProtocolMachineSemanticObjects
impl<'de> Deserialize<'de> for ProtocolMachineSemanticObjects
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ProtocolMachineSemanticObjects
impl PartialEq for ProtocolMachineSemanticObjects
Source§fn eq(&self, other: &ProtocolMachineSemanticObjects) -> bool
fn eq(&self, other: &ProtocolMachineSemanticObjects) -> bool
self and other values to be equal, and is used by ==.