pub struct TrivialPredicate {}Expand description
Predicate that is always true
Trait Implementations§
Source§impl Clone for TrivialPredicate
impl Clone for TrivialPredicate
Source§fn clone(&self) -> TrivialPredicate
fn clone(&self) -> TrivialPredicate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrivialPredicate
impl Debug for TrivialPredicate
Source§impl Default for TrivialPredicate
impl Default for TrivialPredicate
Source§impl Op<bool> for TrivialPredicate
impl Op<bool> for TrivialPredicate
fn perform<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_dry: &'life1 mut DryContext,
_wet: &'life2 mut WetContext,
) -> Pin<Box<dyn Future<Output = OpResult<bool>> + 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 Freeze for TrivialPredicate
impl RefUnwindSafe for TrivialPredicate
impl Send for TrivialPredicate
impl Sync for TrivialPredicate
impl Unpin for TrivialPredicate
impl UnsafeUnpin for TrivialPredicate
impl UnwindSafe for TrivialPredicate
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