pub struct ApplicationMutationRequest<'a> { /* private fields */ }Expand description
Exact original application mutation after durable reservation.
The caller holds its original guard and independently admits fresh authority, dependencies, application safety and exclusive never-dispatched custody.
Implementations§
Source§impl<'a> ApplicationMutationRequest<'a>
impl<'a> ApplicationMutationRequest<'a>
Sourcepub fn new(
plan: &'a OperationPlanRecord,
sequence: u64,
journal: &AttemptJournalRecord,
payload: &'a ApplicationIngressPayload,
) -> Result<Self, ApplicationIngressError>
pub fn new( plan: &'a OperationPlanRecord, sequence: u64, journal: &AttemptJournalRecord, payload: &'a ApplicationIngressPayload, ) -> Result<Self, ApplicationIngressError>
Bind original exact opaque bytes to the current pending mutation.
§Errors
Rejects changed authority/payload, absent mutation or pending recovery.
Sourcepub const fn plan(&self) -> &OperationPlanRecord
pub const fn plan(&self) -> &OperationPlanRecord
Read the complete original plan/context and inventory.
Sourcepub const fn payload(&self) -> &ApplicationIngressPayload
pub const fn payload(&self) -> &ApplicationIngressPayload
Read exact opaque update fields.
Read full original authority and finite allowances.
Sourcepub const fn mutation_attempt(&self) -> u32
pub const fn mutation_attempt(&self) -> u32
Read the already consumed mutation attempt.
Sourcepub fn validate_journal(
&self,
journal: &AttemptJournalRecord,
) -> Result<(), ApplicationIngressError>
pub fn validate_journal( &self, journal: &AttemptJournalRecord, ) -> Result<(), ApplicationIngressError>
Recheck current exact original reservation without authorizing dispatch.
§Errors
Rejects changed authority, mutation or pending observation.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ApplicationMutationRequest<'a>
impl<'a> RefUnwindSafe for ApplicationMutationRequest<'a>
impl<'a> Send for ApplicationMutationRequest<'a>
impl<'a> Sync for ApplicationMutationRequest<'a>
impl<'a> Unpin for ApplicationMutationRequest<'a>
impl<'a> UnsafeUnpin for ApplicationMutationRequest<'a>
impl<'a> UnwindSafe for ApplicationMutationRequest<'a>
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