pub struct ServiceStartConfigBuilder<___State = __ServiceStartConfigBuilderInitialState> { /* private fields */ }
Expand description
Use builder syntax to set the required parameters and finish by calling the method Self::build()
.
Implementations§
Source§impl<__Program, __WaitStrategy, __EnvVars> ServiceStartConfigBuilder<(__Program, __WaitStrategy, __EnvVars)>
impl<__Program, __WaitStrategy, __EnvVars> ServiceStartConfigBuilder<(__Program, __WaitStrategy, __EnvVars)>
Sourcepub fn build(self) -> ServiceStartConfig
pub fn build(self) -> ServiceStartConfig
Finishes building and returns the requested object.
Sourcepub fn program(
self,
value: &'static str,
) -> <Self as __ServiceStartConfigBuilderSetMember>::Programwhere
__Program: IsUnset,
pub fn program(
self,
value: &'static str,
) -> <Self as __ServiceStartConfigBuilderSetMember>::Programwhere
__Program: IsUnset,
Sets the value of program
. See ServiceStartConfig::builder()
for more info.
Sourcepub fn wait_strategy(
self,
value: WaitStrategy,
) -> <Self as __ServiceStartConfigBuilderSetMember>::WaitStrategywhere
__WaitStrategy: IsUnset,
pub fn wait_strategy(
self,
value: WaitStrategy,
) -> <Self as __ServiceStartConfigBuilderSetMember>::WaitStrategywhere
__WaitStrategy: IsUnset,
Sets the value of wait_strategy
. See ServiceStartConfig::builder()
for more info.
Sourcepub fn maybe_env_vars(
self,
value: Option<Vec<(String, String)>>,
) -> <Self as __ServiceStartConfigBuilderSetMember>::EnvVarswhere
__EnvVars: IsUnset,
pub fn maybe_env_vars(
self,
value: Option<Vec<(String, String)>>,
) -> <Self as __ServiceStartConfigBuilderSetMember>::EnvVarswhere
__EnvVars: IsUnset,
Same as Self::env_vars
, but accepts an Option
as input. See that method’s documentation for more details.
Auto Trait Implementations§
impl<___State> Freeze for ServiceStartConfigBuilder<___State>where
___State: Freeze,
impl<___State> RefUnwindSafe for ServiceStartConfigBuilder<___State>where
___State: RefUnwindSafe,
impl<___State> Send for ServiceStartConfigBuilder<___State>where
___State: Send,
impl<___State> Sync for ServiceStartConfigBuilder<___State>where
___State: Sync,
impl<___State> Unpin for ServiceStartConfigBuilder<___State>where
___State: Unpin,
impl<___State> UnwindSafe for ServiceStartConfigBuilder<___State>where
___State: UnwindSafe,
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> 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