pub struct SubmitAdjudicationUseCase<P>{ /* private fields */ }Expand description
Sync use-case: apply an oracle verdict atomically.
Invoked via spawn_blocking by EngineHandle::submit_adjudication.
Implementations§
Source§impl<P> SubmitAdjudicationUseCase<P>
impl<P> SubmitAdjudicationUseCase<P>
pub fn new( persistence: Arc<P>, pending_store: Arc<dyn ErasedPendingStore>, ) -> Self
Sourcepub fn execute(
&self,
handle_id: Uuid,
response: AdjudicationResponse,
now: DateTime<Utc>,
) -> Result<AdjudicationOutcome, MemError>
pub fn execute( &self, handle_id: Uuid, response: AdjudicationResponse, now: DateTime<Utc>, ) -> Result<AdjudicationOutcome, MemError>
Execute the verdict-apply algorithm.
now is engine-stamped at the async boundary and passed in (DETERMINISM).
Auto Trait Implementations§
impl<P> !RefUnwindSafe for SubmitAdjudicationUseCase<P>
impl<P> !UnwindSafe for SubmitAdjudicationUseCase<P>
impl<P> Freeze for SubmitAdjudicationUseCase<P>
impl<P> Send for SubmitAdjudicationUseCase<P>
impl<P> Sync for SubmitAdjudicationUseCase<P>
impl<P> Unpin for SubmitAdjudicationUseCase<P>
impl<P> UnsafeUnpin for SubmitAdjudicationUseCase<P>
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