pub struct CompensationSubmission<'a, S, H: EffectHandler> { /* private fields */ }Expand description
A request to undo a registered handler’s effect. Await it. Created by
Runtime::compensate.
Implementations§
Trait Implementations§
Source§impl<'a, S: EffectStore, H: EffectHandler> IntoFuture for CompensationSubmission<'a, S, H>
impl<'a, S: EffectStore, H: EffectHandler> IntoFuture for CompensationSubmission<'a, S, H>
Source§type Output = Result<CompensationOutcome, RuntimeError>
type Output = Result<CompensationOutcome, RuntimeError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CompensationSubmission<'a, S, H> as IntoFuture>::Output> + Send + 'a>>
type IntoFuture = Pin<Box<dyn Future<Output = <CompensationSubmission<'a, S, H> as IntoFuture>::Output> + Send + 'a>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a, S, H> !RefUnwindSafe for CompensationSubmission<'a, S, H>
impl<'a, S, H> !UnwindSafe for CompensationSubmission<'a, S, H>
impl<'a, S, H> Freeze for CompensationSubmission<'a, S, H>
impl<'a, S, H> Send for CompensationSubmission<'a, S, H>
impl<'a, S, H> Sync for CompensationSubmission<'a, S, H>
impl<'a, S, H> Unpin for CompensationSubmission<'a, S, H>
impl<'a, S, H> UnsafeUnpin for CompensationSubmission<'a, S, H>
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