pub struct IcSnapshotTransferReadRequest<'request, 'metadata> { /* private fields */ }Expand description
Full original plan and already consumed update reservation for one transfer read.
A semantic read still uses replicated update ingress and the existing mutation reservation lane. It grants no fresh permission or proof of never-dispatched custody; reconstruction never permits repeating a lost read.
Implementations§
Source§impl<'request, 'metadata> IcSnapshotTransferReadRequest<'request, 'metadata>
impl<'request, 'metadata> IcSnapshotTransferReadRequest<'request, 'metadata>
Sourcepub fn new(
plan: &'request OperationPlanRecord,
operation_sequence: u64,
journal: &AttemptJournalRecord,
payload: IcSnapshotTransferReadPayload<'request, 'metadata>,
) -> Result<Self, IcSnapshotTransferReadError>
pub fn new( plan: &'request OperationPlanRecord, operation_sequence: u64, journal: &AttemptJournalRecord, payload: IcSnapshotTransferReadPayload<'request, 'metadata>, ) -> Result<Self, IcSnapshotTransferReadError>
Bind exact original target/wire bytes and immutable original allowance.
§Errors
Rejects another plan/operation/payload, absent or changed update reservation, or already pending recovery. Creates no journal and spends nothing.
Sourcepub const fn plan(&self) -> &'request OperationPlanRecord
pub const fn plan(&self) -> &'request OperationPlanRecord
Read full original context, inventory, graph and allowances.
Sourcepub const fn payload(
&self,
) -> IcSnapshotTransferReadPayload<'request, 'metadata>
pub const fn payload( &self, ) -> IcSnapshotTransferReadPayload<'request, 'metadata>
Read the exact metadata/data payload without reconstructing its bytes.
Read the full original operation authority.
Sourcepub const fn mutation_attempt(&self) -> u32
pub const fn mutation_attempt(&self) -> u32
Read the already consumed replicated-update attempt.
Sourcepub fn validate_journal(
&self,
journal: &AttemptJournalRecord,
) -> Result<(), IcSnapshotTransferReadError>
pub fn validate_journal( &self, journal: &AttemptJournalRecord, ) -> Result<(), IcSnapshotTransferReadError>
Recheck original reservation before passive response association.
§Errors
Rejects changed authority, settled/replaced update or pending recovery.