Skip to main content

UpdateSettingsRequestBuilder

Struct UpdateSettingsRequestBuilder 

Source
pub struct UpdateSettingsRequestBuilder<TKey, TMsg, ___State = (Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>, Unset<Optional>)>
where TKey: JobKey, TMsg: Message,
{ /* 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)>
where TKey: JobKey, TMsg: Message,

Source

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.

Source

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.

Source

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

Source

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.

Source

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

Source

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.

Source

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

Source

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.

Source

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

Source

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.

Source

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

Source

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.

Source

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

Source

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.

Source

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>
where ___State: Sync, TMsg: Sync,

§

impl<TKey, TMsg, ___State> Unpin for UpdateSettingsRequestBuilder<TKey, TMsg, ___State>
where ___State: Unpin, TKey: Unpin, TMsg: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Message for T
where T: Any + Send + 'static,

Source§

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>

Convert this message to a BoxedMessage
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> State for T
where T: Any + Send + 'static,