pub enum Effect {
Rearm {
eligible_at_ms: i64,
},
Complete,
Requeue {
eligible_at_ms: i64,
},
Fault(Fault),
}Expand description
What a transition asks storage to persist. One variant per named write in
work_state::trigger; there is no effect for “leave it alone”, so an empty
result means the event was a no-op.
Variants§
Rearm
Stay queued, with a new eligibility instant. Only a recurring trigger rearms.
Complete
Retire the trigger.
Requeue
Return the trigger to the queue at this instant.
Fault(Fault)
The trigger cannot be honoured and no write should follow.
Trait Implementations§
impl Copy for Effect
impl Eq for Effect
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnsafeUnpin for Effect
impl UnwindSafe for Effect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.