pub type StoreBatchCommit = Signed<StoreBatchCommitBody>;Aliased Type§
pub struct StoreBatchCommit { /* private fields */ }Implementations§
Source§impl StoreBatchCommit
impl StoreBatchCommit
pub fn signed_reclaim_receipt( store_root_hash: ObjectHash, write_id: WriteId, coord: StoreCommitCoord, author_registration: StoreDeviceRegistrationRef, author: &StoreDeviceRegistration, order: StoreCommitOrder, publication_base: StorePublicationBase, membership_state: StoreMembershipStateRef, device_state: StoreDeviceStateRef, receipt: ReclaimReceiptRef, signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>
pub fn merge_dependencies( &self, ) -> &BTreeMap<AuthorStreamId, StoreBatchCommitRef>
pub fn signed_with_owner_promotion_request( store_root_hash: ObjectHash, write_id: WriteId, coord: StoreCommitCoord, author_registration: StoreDeviceRegistrationRef, author: &StoreDeviceRegistration, order: StoreCommitOrder, publication_base: StorePublicationBase, membership_state: StoreMembershipStateRef, device_state: StoreDeviceStateRef, membership_authority: MembershipCoord, request: OwnerPromotionRequest, signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>
pub fn signed_with_candidate_abandonment( store_root_hash: ObjectHash, write_id: WriteId, coord: StoreCommitCoord, author_registration: StoreDeviceRegistrationRef, author: &StoreDeviceRegistration, order: StoreCommitOrder, publication_base: StorePublicationBase, membership_state: StoreMembershipStateRef, device_state: StoreDeviceStateRef, manifests: Vec<CandidateCleanupManifest>, signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>
pub fn signed_operations( store_root_hash: ObjectHash, write_id: WriteId, coord: StoreCommitCoord, author_registration: StoreDeviceRegistrationRef, author: &StoreDeviceRegistration, order: StoreCommitOrder, publication_base: StorePublicationBase, membership_state: StoreMembershipStateRef, device_state: StoreDeviceStateRef, membership_authority: MembershipCoord, input: StoreCommitOperationsInput<'_>, signer: &UserKeypair, ) -> Result<Self, StoreProtocolError>
Source§impl StoreBatchCommit
impl StoreBatchCommit
pub fn commit_hash(&self) -> ObjectHash
pub fn verify_at( &self, expected_store_root_hash: ObjectHash, expected_coord: &StoreCommitCoord, author: &StoreDeviceRegistration, ) -> Result<(), StoreProtocolError>
pub fn verify_store_package( &self, package_bytes: &[u8], ) -> Result<(), StoreProtocolError>
pub fn verify_circle_package( &self, circle_id: CircleId, package_bytes: &[u8], ) -> Result<(), StoreProtocolError>
Source§impl StoreBatchCommit
impl StoreBatchCommit
pub fn seq(&self) -> u64
pub fn publication_base(&self) -> &StorePublicationBase
pub fn candidate_family(&self) -> CandidateFamilyId
pub fn operations(&self) -> Option<&StoreCommitOperations>
pub fn control(&self) -> Option<&StoreControl>
pub fn acknowledgement(&self) -> Option<&StoreAckRef>
pub fn circle_acknowledgements(&self) -> &[CircleAckRef]
pub fn retained_operation_objects( &self, ) -> Result<Vec<ExactObjectRef>, StoreProtocolError>
pub fn abandoned_candidates(&self) -> &[CandidateCleanupManifest]
pub fn reclaim_receipt(&self) -> Option<&ReclaimReceiptRef>
pub fn device_join_attempt_decisions(&self) -> &[DeviceJoinAttemptDecisionRef]
pub fn provider_access_grants(&self) -> &[StoreMemberProviderAccessGrantRef]
pub fn device_registrations(&self) -> &[ActivatedStoreDeviceRegistrationRef]
pub fn device_exclusion_proposals(&self) -> &[StoreDeviceExclusionProposalRef]
pub fn device_exclusion_outcomes(&self) -> &[StoreDeviceExclusionOutcomeRef]
pub fn stream_activations(&self) -> &[StreamActivation]
pub fn owner_promotion_request(&self) -> Option<&OwnerPromotionRequest>
pub fn circle_controls(&self) -> &[CircleControlRef]
pub fn store_package(&self) -> Option<&StorePackageRef>
pub fn circle_packages(&self) -> &[CirclePackageRef]
Source§impl StoreBatchCommit
impl StoreBatchCommit
Sourcepub fn has_pending_device_join_bootstrap<'a>(
&self,
state: &ResolvedStoreDeviceState,
frontier: &CommitFrontier,
accepted: impl IntoIterator<Item = &'a StoreBatchCommit>,
) -> Result<bool, StoreProtocolError>
pub fn has_pending_device_join_bootstrap<'a>( &self, state: &ResolvedStoreDeviceState, frontier: &CommitFrontier, accepted: impl IntoIterator<Item = &'a StoreBatchCommit>, ) -> Result<bool, StoreProtocolError>
Opening an Attempt creates an image consumer. Separate registration or abandonment ends that consumer; combined registration keeps the image until the registered device has published against accepted history.
Sourcepub fn pending_bootstrap_registration(
&self,
state: &ResolvedStoreDeviceState,
frontier: &CommitFrontier,
) -> Result<Option<&StoreDeviceRegistrationRef>, StoreProtocolError>
pub fn pending_bootstrap_registration( &self, state: &ResolvedStoreDeviceState, frontier: &CommitFrontier, ) -> Result<Option<&StoreDeviceRegistrationRef>, StoreProtocolError>
A same-principal activation opens its attempt and registers the device together. Until that exact device publishes, its original handoff is a live consumer of the selected snapshot and following accepted interval.