pub struct UpdateSettingsRequest<TKey, TMsg>{
pub discard_handler: Option<Option<Arc<dyn DiscardHandler<TKey, TMsg>>>>,
pub discard_settings: Option<DiscardSettings>,
pub dead_mans_switch: Option<Option<DeadMansSwitchConfiguration>>,
pub capacity_controller: Option<Option<Box<dyn WorkerCapacityController>>>,
pub lifecycle_hooks: Option<Option<Box<dyn FactoryLifecycleHooks<TKey, TMsg>>>>,
pub stats: Option<Option<Arc<dyn FactoryStatsLayer>>>,
pub worker_count: Option<usize>,
}Expand description
The settings to change for an update request to the factory at runtime.
Note: A value of Some(..) means that the internal value should be updated
inside the factory’s state. For values which are originally optional to the factory,
we use Option<Option<T>>, so if you want to UNSET the value, it would be Some(None).
Fields§
§discard_handler: Option<Option<Arc<dyn DiscardHandler<TKey, TMsg>>>>The discard handler callback
discard_settings: Option<DiscardSettings>The discard settings
dead_mans_switch: Option<Option<DeadMansSwitchConfiguration>>Dead-man’s switch settings
capacity_controller: Option<Option<Box<dyn WorkerCapacityController>>>Capacity controller
lifecycle_hooks: Option<Option<Box<dyn FactoryLifecycleHooks<TKey, TMsg>>>>Lifecycle hooks
stats: Option<Option<Arc<dyn FactoryStatsLayer>>>Statistics layer
worker_count: Option<usize>The worker count
Implementations§
Source§impl<TKey, TMsg> UpdateSettingsRequest<TKey, TMsg>
impl<TKey, TMsg> UpdateSettingsRequest<TKey, TMsg>
Sourcepub fn builder() -> UpdateSettingsRequestBuilder<TKey, TMsg>
pub fn builder() -> UpdateSettingsRequestBuilder<TKey, TMsg>
Create an instance of UpdateSettingsRequest using the builder syntax
Trait Implementations§
Auto Trait Implementations§
impl<TKey, TMsg> Freeze for UpdateSettingsRequest<TKey, TMsg>
impl<TKey, TMsg> !RefUnwindSafe for UpdateSettingsRequest<TKey, TMsg>
impl<TKey, TMsg> Send for UpdateSettingsRequest<TKey, TMsg>
impl<TKey, TMsg> Sync for UpdateSettingsRequest<TKey, TMsg>
impl<TKey, TMsg> Unpin for UpdateSettingsRequest<TKey, TMsg>
impl<TKey, TMsg> !UnwindSafe for UpdateSettingsRequest<TKey, TMsg>
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> 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> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage