pub struct TimeBoundWrapper<T> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<T> Op<T> for TimeBoundWrapper<T>where
T: Send + 'static,
impl<T> Op<T> for TimeBoundWrapper<T>where
T: Send + 'static,
fn perform<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
dry: &'life1 mut DryContext,
wet: &'life2 mut WetContext,
) -> Pin<Box<dyn Future<Output = OpResult<T>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn metadata(&self) -> OpMetadata
Source§fn rollback<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_dry: &'life1 mut DryContext,
_wet: &'life2 mut WetContext,
) -> Pin<Box<dyn Future<Output = OpResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn rollback<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_dry: &'life1 mut DryContext,
_wet: &'life2 mut WetContext,
) -> Pin<Box<dyn Future<Output = OpResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Optional rollback method for ops that need custom cleanup logic.
Default implementation is a no-op for backward compatibility.
Called automatically by batch operations when a later op fails.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TimeBoundWrapper<T>
impl<T> !UnwindSafe for TimeBoundWrapper<T>
impl<T> Freeze for TimeBoundWrapper<T>
impl<T> Send for TimeBoundWrapper<T>
impl<T> Sync for TimeBoundWrapper<T>
impl<T> Unpin for TimeBoundWrapper<T>
impl<T> UnsafeUnpin for TimeBoundWrapper<T>
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