pub struct CompensationService { /* private fields */ }Expand description
Compensation service — records compensation events for failed transitions.
Implementations§
Source§impl CompensationService
impl CompensationService
pub fn new(resolver: CompensationResolver) -> Self
pub fn compensate<S: FlowState>( &self, event: &VersionedTransitionEvent, cause: &str, store: &mut EventLogStore<S>, ) -> bool
Auto Trait Implementations§
impl Freeze for CompensationService
impl !RefUnwindSafe for CompensationService
impl Send for CompensationService
impl Sync for CompensationService
impl Unpin for CompensationService
impl UnsafeUnpin for CompensationService
impl !UnwindSafe for CompensationService
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