pub struct ResourceBasedTunerBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> ResourceBasedTunerBuilder<S>
impl<S: State> ResourceBasedTunerBuilder<S>
Sourcepub fn build(self) -> ResourceBasedTunerwhere
S: IsComplete,
pub fn build(self) -> ResourceBasedTunerwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn tuner_options(
self,
value: ResourceBasedTunerOptions,
) -> ResourceBasedTunerBuilder<SetTunerOptions<S>>where
S::TunerOptions: IsUnset,
pub fn tuner_options(
self,
value: ResourceBasedTunerOptions,
) -> ResourceBasedTunerBuilder<SetTunerOptions<S>>where
S::TunerOptions: IsUnset,
Required.
Target memory and CPU usage.
Sourcepub fn workflow_task_slot_options(
self,
value: ResourceBasedSlotOptions,
) -> ResourceBasedTunerBuilder<SetWorkflowTaskSlotOptions<S>>where
S::WorkflowTaskSlotOptions: IsUnset,
pub fn workflow_task_slot_options(
self,
value: ResourceBasedSlotOptions,
) -> ResourceBasedTunerBuilder<SetWorkflowTaskSlotOptions<S>>where
S::WorkflowTaskSlotOptions: IsUnset,
Sourcepub fn maybe_workflow_task_slot_options(
self,
value: Option<ResourceBasedSlotOptions>,
) -> ResourceBasedTunerBuilder<SetWorkflowTaskSlotOptions<S>>where
S::WorkflowTaskSlotOptions: IsUnset,
pub fn maybe_workflow_task_slot_options(
self,
value: Option<ResourceBasedSlotOptions>,
) -> ResourceBasedTunerBuilder<SetWorkflowTaskSlotOptions<S>>where
S::WorkflowTaskSlotOptions: IsUnset,
Sourcepub fn activity_task_slot_options(
self,
value: ResourceBasedSlotOptions,
) -> ResourceBasedTunerBuilder<SetActivityTaskSlotOptions<S>>where
S::ActivityTaskSlotOptions: IsUnset,
pub fn activity_task_slot_options(
self,
value: ResourceBasedSlotOptions,
) -> ResourceBasedTunerBuilder<SetActivityTaskSlotOptions<S>>where
S::ActivityTaskSlotOptions: IsUnset,
Sourcepub fn maybe_activity_task_slot_options(
self,
value: Option<ResourceBasedSlotOptions>,
) -> ResourceBasedTunerBuilder<SetActivityTaskSlotOptions<S>>where
S::ActivityTaskSlotOptions: IsUnset,
pub fn maybe_activity_task_slot_options(
self,
value: Option<ResourceBasedSlotOptions>,
) -> ResourceBasedTunerBuilder<SetActivityTaskSlotOptions<S>>where
S::ActivityTaskSlotOptions: IsUnset,
Sourcepub fn local_activity_task_slot_options(
self,
value: ResourceBasedSlotOptions,
) -> ResourceBasedTunerBuilder<SetLocalActivityTaskSlotOptions<S>>where
S::LocalActivityTaskSlotOptions: IsUnset,
pub fn local_activity_task_slot_options(
self,
value: ResourceBasedSlotOptions,
) -> ResourceBasedTunerBuilder<SetLocalActivityTaskSlotOptions<S>>where
S::LocalActivityTaskSlotOptions: IsUnset,
Sourcepub fn maybe_local_activity_task_slot_options(
self,
value: Option<ResourceBasedSlotOptions>,
) -> ResourceBasedTunerBuilder<SetLocalActivityTaskSlotOptions<S>>where
S::LocalActivityTaskSlotOptions: IsUnset,
pub fn maybe_local_activity_task_slot_options(
self,
value: Option<ResourceBasedSlotOptions>,
) -> ResourceBasedTunerBuilder<SetLocalActivityTaskSlotOptions<S>>where
S::LocalActivityTaskSlotOptions: IsUnset,
Sourcepub fn nexus_task_slot_options(
self,
value: ResourceBasedSlotOptions,
) -> ResourceBasedTunerBuilder<SetNexusTaskSlotOptions<S>>where
S::NexusTaskSlotOptions: IsUnset,
pub fn nexus_task_slot_options(
self,
value: ResourceBasedSlotOptions,
) -> ResourceBasedTunerBuilder<SetNexusTaskSlotOptions<S>>where
S::NexusTaskSlotOptions: IsUnset,
Sourcepub fn maybe_nexus_task_slot_options(
self,
value: Option<ResourceBasedSlotOptions>,
) -> ResourceBasedTunerBuilder<SetNexusTaskSlotOptions<S>>where
S::NexusTaskSlotOptions: IsUnset,
pub fn maybe_nexus_task_slot_options(
self,
value: Option<ResourceBasedSlotOptions>,
) -> ResourceBasedTunerBuilder<SetNexusTaskSlotOptions<S>>where
S::NexusTaskSlotOptions: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for ResourceBasedTunerBuilder<S>
impl<S> RefUnwindSafe for ResourceBasedTunerBuilder<S>
impl<S> Send for ResourceBasedTunerBuilder<S>
impl<S> Sync for ResourceBasedTunerBuilder<S>
impl<S> Unpin for ResourceBasedTunerBuilder<S>
impl<S> UnsafeUnpin for ResourceBasedTunerBuilder<S>
impl<S> UnwindSafe for ResourceBasedTunerBuilder<S>
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> 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> ⓘ
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 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> ⓘ
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 moreSource§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