pub struct ReconcileController<R: Reconciler> { /* private fields */ }Expand description
The complete operator loop, parameterized by reconciler kind.
Implementations§
Source§impl<R: Reconciler> ReconcileController<R>
impl<R: Reconciler> ReconcileController<R>
pub fn new( reconciler: BudgetedReconciler<R>, policy: DriftPolicy, stream: Arc<PlanStream>, metrics: Arc<Metrics>, workspace: impl Into<String>, ) -> Self
Sourcepub fn kind(&self) -> &'static str
pub fn kind(&self) -> &'static str
Reconciler kind for this controller (echoes the inner reconciler’s
kind()).
Sourcepub async fn reconcile(
&self,
config: &Value,
) -> Result<ControllerOutcome, ControllerError>
pub async fn reconcile( &self, config: &Value, ) -> Result<ControllerOutcome, ControllerError>
Run the full reconcile loop end-to-end.
Trait Implementations§
Source§impl<R: Reconciler + 'static> DynController for ReconcileController<R>
impl<R: Reconciler + 'static> DynController for ReconcileController<R>
Auto Trait Implementations§
impl<R> !RefUnwindSafe for ReconcileController<R>
impl<R> !UnwindSafe for ReconcileController<R>
impl<R> Forget for ReconcileController<R>
impl<R> Freeze for ReconcileController<R>where
*const ArcInner<BudgetedReconciler<R>> is !null: Freeze,
PhantomData<ArcInner<BudgetedReconciler<R>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<PolicyRule>: Freeze,
*const ArcInner<PlanStream> is !null: Freeze,
PhantomData<ArcInner<PlanStream>>: Freeze,
*const ArcInner<Metrics> is !null: Freeze,
PhantomData<ArcInner<Metrics>>: Freeze,
PhantomData<u8>: Freeze,
impl<R> Move for ReconcileController<R>
impl<R> Send for ReconcileController<R>where
Arc<BudgetedReconciler<R>>: Send,
RawVecInner: Send,
Arc<PlanStream>: Send,
Arc<Metrics>: Send,
impl<R> Sync for ReconcileController<R>where
Arc<BudgetedReconciler<R>>: Sync,
RawVecInner: Sync,
Arc<PlanStream>: Sync,
Arc<Metrics>: Sync,
impl<R> Unpin for ReconcileController<R>
impl<R> UnsafeUnpin for ReconcileController<R>where
*const ArcInner<BudgetedReconciler<R>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BudgetedReconciler<R>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<PolicyRule>: UnsafeUnpin,
*const ArcInner<PlanStream> is !null: UnsafeUnpin,
PhantomData<ArcInner<PlanStream>>: UnsafeUnpin,
*const ArcInner<Metrics> is !null: UnsafeUnpin,
PhantomData<ArcInner<Metrics>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request