pub struct Config { /* private fields */ }
Expand description
Accumulates all options that can be used on a Controller
invocation.
Implementations§
Source§impl Config
impl Config
Sourcepub fn debounce(self, debounce: Duration) -> Self
pub fn debounce(self, debounce: Duration) -> Self
The debounce duration used to deduplicate reconciliation requests.
When set to a non-zero duration, debouncing is enabled in the scheduler
resulting in trailing edge debouncing of reconciler requests.
This option can help to reduce the amount of unnecessary reconciler calls
when using multiple controller relations, or during rapid phase transitions.
§Warning
This option delays (and keeps delaying) reconcile requests for objects while the object is updated. It can permanently hide updates from your reconciler if set too high on objects that are updated frequently (like nodes).
Sourcepub fn concurrency(self, concurrency: u16) -> Self
pub fn concurrency(self, concurrency: u16) -> Self
The number of concurrent reconciliations of that are allowed to run at an given moment.
This can be adjusted to the controller’s needs to increase performance and/or make performance predictable. By default, its 0 meaning the controller runs with unbounded concurrency.
Note that despite concurrency, a controller never schedules concurrent reconciles on the same object.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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§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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more