pub(crate) struct VerifiedMutationAdmission {
witness: MutationSourceWitness,
control: IndexWorkControl,
}Expand description
Saved-source witness retained through one purpose mutation commit boundary.
Fields§
§witness: MutationSourceWitnessObserved or exact-per-call source authority retained by this admission.
control: IndexWorkControlCooperative cancellation and work budget shared through commit admission.
Implementations§
Source§impl VerifiedMutationAdmission
impl VerifiedMutationAdmission
Sourcepub(crate) fn verify(&self) -> Result<(), CliError>
pub(crate) fn verify(&self) -> Result<(), CliError>
Revalidate exact saved source, policy, observer continuity, and cancellation before commit.
Sourcefn verify_observed(
entry: &SourceObservationEntry,
epoch: &VerifiedSourceEpoch,
control: &IndexWorkControl,
verify_source: impl FnOnce() -> Result<(), CliError>,
) -> Result<(), CliError>
fn verify_observed( entry: &SourceObservationEntry, epoch: &VerifiedSourceEpoch, control: &IndexWorkControl, verify_source: impl FnOnce() -> Result<(), CliError>, ) -> Result<(), CliError>
Revalidate an observer-backed mutation witness around exact saved source.
Sourcefn verify_observation(
entry: &SourceObservationEntry,
epoch: &VerifiedSourceEpoch,
control: &IndexWorkControl,
) -> Result<(), CliError>
fn verify_observation( entry: &SourceObservationEntry, epoch: &VerifiedSourceEpoch, control: &IndexWorkControl, ) -> Result<(), CliError>
Require the retained observer epoch to remain current.
Sourcefn verify_exact(
binding: &SourceBinding,
stamp: &VerifiedReadStamp,
contract_fingerprint: &str,
policy_witness: &str,
control: &IndexWorkControl,
) -> Result<(), CliError>
fn verify_exact( binding: &SourceBinding, stamp: &VerifiedReadStamp, contract_fingerprint: &str, policy_witness: &str, control: &IndexWorkControl, ) -> Result<(), CliError>
Revalidate exact saved source plus durable identity immediately before commit.
Auto Trait Implementations§
impl Freeze for VerifiedMutationAdmission
impl RefUnwindSafe for VerifiedMutationAdmission
impl Send for VerifiedMutationAdmission
impl Sync for VerifiedMutationAdmission
impl Unpin for VerifiedMutationAdmission
impl UnsafeUnpin for VerifiedMutationAdmission
impl UnwindSafe for VerifiedMutationAdmission
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more