pub struct UpdateSettingsRequestBuilder<TKey, TMsg, ___State = (Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>)>{ /* private fields */ }Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build().
Implementations§
Source§impl<TKey, TMsg, __DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>
impl<TKey, TMsg, __DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>
Sourcepub fn build(self) -> UpdateSettingsRequest<TKey, TMsg>where
__DiscardHandler: IntoSet<Option<Option<Arc<dyn DiscardHandler<TKey, TMsg>>>>, UpdateSettingsRequestBuilder__discard_handler>,
__DiscardSettings: IntoSet<Option<DiscardSettings>, UpdateSettingsRequestBuilder__discard_settings>,
__DeadMansSwitch: IntoSet<Option<Option<DeadMansSwitchConfiguration>>, UpdateSettingsRequestBuilder__dead_mans_switch>,
__CapacityController: IntoSet<Option<Option<Box<dyn WorkerCapacityController>>>, UpdateSettingsRequestBuilder__capacity_controller>,
__LifecycleHooks: IntoSet<Option<Option<Box<dyn FactoryLifecycleHooks<TKey, TMsg>>>>, UpdateSettingsRequestBuilder__lifecycle_hooks>,
__Stats: IntoSet<Option<Option<Arc<dyn FactoryStatsLayer>>>, UpdateSettingsRequestBuilder__stats>,
__WorkerCount: IntoSet<Option<usize>, UpdateSettingsRequestBuilder__worker_count>,
pub fn build(self) -> UpdateSettingsRequest<TKey, TMsg>where
__DiscardHandler: IntoSet<Option<Option<Arc<dyn DiscardHandler<TKey, TMsg>>>>, UpdateSettingsRequestBuilder__discard_handler>,
__DiscardSettings: IntoSet<Option<DiscardSettings>, UpdateSettingsRequestBuilder__discard_settings>,
__DeadMansSwitch: IntoSet<Option<Option<DeadMansSwitchConfiguration>>, UpdateSettingsRequestBuilder__dead_mans_switch>,
__CapacityController: IntoSet<Option<Option<Box<dyn WorkerCapacityController>>>, UpdateSettingsRequestBuilder__capacity_controller>,
__LifecycleHooks: IntoSet<Option<Option<Box<dyn FactoryLifecycleHooks<TKey, TMsg>>>>, UpdateSettingsRequestBuilder__lifecycle_hooks>,
__Stats: IntoSet<Option<Option<Arc<dyn FactoryStatsLayer>>>, UpdateSettingsRequestBuilder__stats>,
__WorkerCount: IntoSet<Option<usize>, UpdateSettingsRequestBuilder__worker_count>,
Finishes building and returns the requested object.
Sourcepub fn maybe_discard_handler(
self,
value: Option<Option<Arc<dyn DiscardHandler<TKey, TMsg>>>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (Set<Option<Option<Arc<dyn DiscardHandler<TKey, TMsg>>>>>, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>where
__DiscardHandler: IsUnset,
pub fn maybe_discard_handler(
self,
value: Option<Option<Arc<dyn DiscardHandler<TKey, TMsg>>>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (Set<Option<Option<Arc<dyn DiscardHandler<TKey, TMsg>>>>>, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>where
__DiscardHandler: IsUnset,
Same as Self::discard_handler, but accepts an Option as input. See that method’s documentation for more details.
Sourcepub fn discard_handler(
self,
value: Option<Arc<dyn DiscardHandler<TKey, TMsg>>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (Set<Option<Option<Arc<dyn DiscardHandler<TKey, TMsg>>>>>, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>where
__DiscardHandler: IsUnset,
pub fn discard_handler(
self,
value: Option<Arc<dyn DiscardHandler<TKey, TMsg>>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (Set<Option<Option<Arc<dyn DiscardHandler<TKey, TMsg>>>>>, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>where
__DiscardHandler: IsUnset,
The discard handler callback
Sourcepub fn maybe_discard_settings(
self,
value: Option<DiscardSettings>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, Set<Option<DiscardSettings>>, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>where
__DiscardSettings: IsUnset,
pub fn maybe_discard_settings(
self,
value: Option<DiscardSettings>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, Set<Option<DiscardSettings>>, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>where
__DiscardSettings: IsUnset,
Same as Self::discard_settings, but accepts an Option as input. See that method’s documentation for more details.
Sourcepub fn discard_settings(
self,
value: DiscardSettings,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, Set<Option<DiscardSettings>>, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>where
__DiscardSettings: IsUnset,
pub fn discard_settings(
self,
value: DiscardSettings,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, Set<Option<DiscardSettings>>, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>where
__DiscardSettings: IsUnset,
The discard settings
Sourcepub fn maybe_dead_mans_switch(
self,
value: Option<Option<DeadMansSwitchConfiguration>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, Set<Option<Option<DeadMansSwitchConfiguration>>>, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>where
__DeadMansSwitch: IsUnset,
pub fn maybe_dead_mans_switch(
self,
value: Option<Option<DeadMansSwitchConfiguration>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, Set<Option<Option<DeadMansSwitchConfiguration>>>, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>where
__DeadMansSwitch: IsUnset,
Same as Self::dead_mans_switch, but accepts an Option as input. See that method’s documentation for more details.
Sourcepub fn dead_mans_switch(
self,
value: Option<DeadMansSwitchConfiguration>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, Set<Option<Option<DeadMansSwitchConfiguration>>>, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>where
__DeadMansSwitch: IsUnset,
pub fn dead_mans_switch(
self,
value: Option<DeadMansSwitchConfiguration>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, Set<Option<Option<DeadMansSwitchConfiguration>>>, __CapacityController, __LifecycleHooks, __Stats, __WorkerCount)>where
__DeadMansSwitch: IsUnset,
Dead-man’s switch settings
Sourcepub fn maybe_capacity_controller(
self,
value: Option<Option<Box<dyn WorkerCapacityController>>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, Set<Option<Option<Box<dyn WorkerCapacityController>>>>, __LifecycleHooks, __Stats, __WorkerCount)>where
__CapacityController: IsUnset,
pub fn maybe_capacity_controller(
self,
value: Option<Option<Box<dyn WorkerCapacityController>>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, Set<Option<Option<Box<dyn WorkerCapacityController>>>>, __LifecycleHooks, __Stats, __WorkerCount)>where
__CapacityController: IsUnset,
Same as Self::capacity_controller, but accepts an Option as input. See that method’s documentation for more details.
Sourcepub fn capacity_controller(
self,
value: Option<Box<dyn WorkerCapacityController>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, Set<Option<Option<Box<dyn WorkerCapacityController>>>>, __LifecycleHooks, __Stats, __WorkerCount)>where
__CapacityController: IsUnset,
pub fn capacity_controller(
self,
value: Option<Box<dyn WorkerCapacityController>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, Set<Option<Option<Box<dyn WorkerCapacityController>>>>, __LifecycleHooks, __Stats, __WorkerCount)>where
__CapacityController: IsUnset,
Capacity controller
Sourcepub fn maybe_lifecycle_hooks(
self,
value: Option<Option<Box<dyn FactoryLifecycleHooks<TKey, TMsg>>>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, Set<Option<Option<Box<dyn FactoryLifecycleHooks<TKey, TMsg>>>>>, __Stats, __WorkerCount)>where
__LifecycleHooks: IsUnset,
pub fn maybe_lifecycle_hooks(
self,
value: Option<Option<Box<dyn FactoryLifecycleHooks<TKey, TMsg>>>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, Set<Option<Option<Box<dyn FactoryLifecycleHooks<TKey, TMsg>>>>>, __Stats, __WorkerCount)>where
__LifecycleHooks: IsUnset,
Same as Self::lifecycle_hooks, but accepts an Option as input. See that method’s documentation for more details.
Sourcepub fn lifecycle_hooks(
self,
value: Option<Box<dyn FactoryLifecycleHooks<TKey, TMsg>>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, Set<Option<Option<Box<dyn FactoryLifecycleHooks<TKey, TMsg>>>>>, __Stats, __WorkerCount)>where
__LifecycleHooks: IsUnset,
pub fn lifecycle_hooks(
self,
value: Option<Box<dyn FactoryLifecycleHooks<TKey, TMsg>>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, Set<Option<Option<Box<dyn FactoryLifecycleHooks<TKey, TMsg>>>>>, __Stats, __WorkerCount)>where
__LifecycleHooks: IsUnset,
Lifecycle hooks
Sourcepub fn maybe_stats(
self,
value: Option<Option<Arc<dyn FactoryStatsLayer>>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, Set<Option<Option<Arc<dyn FactoryStatsLayer>>>>, __WorkerCount)>where
__Stats: IsUnset,
pub fn maybe_stats(
self,
value: Option<Option<Arc<dyn FactoryStatsLayer>>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, Set<Option<Option<Arc<dyn FactoryStatsLayer>>>>, __WorkerCount)>where
__Stats: IsUnset,
Same as Self::stats, but accepts an Option as input. See that method’s documentation for more details.
Sourcepub fn stats(
self,
value: Option<Arc<dyn FactoryStatsLayer>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, Set<Option<Option<Arc<dyn FactoryStatsLayer>>>>, __WorkerCount)>where
__Stats: IsUnset,
pub fn stats(
self,
value: Option<Arc<dyn FactoryStatsLayer>>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, Set<Option<Option<Arc<dyn FactoryStatsLayer>>>>, __WorkerCount)>where
__Stats: IsUnset,
Statistics layer
Sourcepub fn maybe_worker_count(
self,
value: Option<usize>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, Set<Option<usize>>)>where
__WorkerCount: IsUnset,
pub fn maybe_worker_count(
self,
value: Option<usize>,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, Set<Option<usize>>)>where
__WorkerCount: IsUnset,
Same as Self::worker_count, but accepts an Option as input. See that method’s documentation for more details.
Sourcepub fn worker_count(
self,
value: usize,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, Set<Option<usize>>)>where
__WorkerCount: IsUnset,
pub fn worker_count(
self,
value: usize,
) -> UpdateSettingsRequestBuilder<TKey, TMsg, (__DiscardHandler, __DiscardSettings, __DeadMansSwitch, __CapacityController, __LifecycleHooks, __Stats, Set<Option<usize>>)>where
__WorkerCount: IsUnset,
The worker count
Auto Trait Implementations§
impl<TKey, TMsg, ___State> Freeze for UpdateSettingsRequestBuilder<TKey, TMsg, ___State>where
___State: Freeze,
impl<TKey, TMsg, ___State = (Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>)> !RefUnwindSafe for UpdateSettingsRequestBuilder<TKey, TMsg, ___State>
impl<TKey, TMsg, ___State> Send for UpdateSettingsRequestBuilder<TKey, TMsg, ___State>where
___State: Send,
impl<TKey, TMsg, ___State> Sync for UpdateSettingsRequestBuilder<TKey, TMsg, ___State>
impl<TKey, TMsg, ___State> Unpin for UpdateSettingsRequestBuilder<TKey, TMsg, ___State>
impl<TKey, TMsg, ___State> UnsafeUnpin for UpdateSettingsRequestBuilder<TKey, TMsg, ___State>where
___State: UnsafeUnpin,
impl<TKey, TMsg, ___State = (Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>)> !UnwindSafe for UpdateSettingsRequestBuilder<TKey, TMsg, ___State>
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> 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