pub struct Action { /* private fields */ }
Expand description
Results of the reconciliation attempt
Implementations§
Source§impl Action
impl Action
Sourcepub fn requeue(duration: Duration) -> Self
pub fn requeue(duration: Duration) -> Self
Action to the reconciliation at this time even if no external watch triggers hit
This is the best-practice action that ensures eventual consistency of your controller even in the case of missed changes (which can happen).
Watch events are not normally missed, so running this once per hour (Default
) as a fallback is reasonable.
Sourcepub fn await_change() -> Self
pub fn await_change() -> Self
Do nothing until a change is detected
This stops the controller periodically reconciling this object until a relevant watch event was detected.
Warning: If you have watch desyncs, it is possible to miss changes entirely. It is therefore not recommended to disable requeuing this way, unless you have frequent changes to the underlying object, or some other hook to retain eventual consistency.
Trait Implementations§
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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
key
and return true
if they are equal.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
key
and return true
if they are equal.