pub enum Precondition {
Satisfied,
Rejected {
reason: String,
},
RetryLater {
after: Duration,
reason: String,
},
}Expand description
Whether an effect may still run, checked before its first attempt.
Variants§
Satisfied
Go ahead.
Rejected
Never run this effect, e.g. “order is no longer pending”. The effect
ends EffectOutcome::Rejected.
RetryLater
Not yet; check again after after, e.g. while a dependency settles.
After as many checks as the retry policy allows attempts, the effect
is rejected.
Implementations§
Trait Implementations§
Source§impl Clone for Precondition
impl Clone for Precondition
Source§impl Debug for Precondition
impl Debug for Precondition
impl Eq for Precondition
Source§impl PartialEq for Precondition
impl PartialEq for Precondition
impl StructuralPartialEq for Precondition
Auto Trait Implementations§
impl Freeze for Precondition
impl RefUnwindSafe for Precondition
impl Send for Precondition
impl Sync for Precondition
impl Unpin for Precondition
impl UnsafeUnpin for Precondition
impl UnwindSafe for Precondition
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