pub struct RuntimeOptionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build_internal().
Implementations§
Source§impl<S: State> RuntimeOptionsBuilder<S>
impl<S: State> RuntimeOptionsBuilder<S>
Sourcepub fn telemetry_options(
self,
value: TelemetryOptions,
) -> RuntimeOptionsBuilder<SetTelemetryOptions<S>>where
S::TelemetryOptions: IsUnset,
pub fn telemetry_options(
self,
value: TelemetryOptions,
) -> RuntimeOptionsBuilder<SetTelemetryOptions<S>>where
S::TelemetryOptions: IsUnset,
Sourcepub fn maybe_telemetry_options(
self,
value: Option<TelemetryOptions>,
) -> RuntimeOptionsBuilder<SetTelemetryOptions<S>>where
S::TelemetryOptions: IsUnset,
pub fn maybe_telemetry_options(
self,
value: Option<TelemetryOptions>,
) -> RuntimeOptionsBuilder<SetTelemetryOptions<S>>where
S::TelemetryOptions: IsUnset,
Sourcepub fn heartbeat_interval(
self,
value: Option<Duration>,
) -> RuntimeOptionsBuilder<SetHeartbeatInterval<S>>where
S::HeartbeatInterval: IsUnset,
pub fn heartbeat_interval(
self,
value: Option<Duration>,
) -> RuntimeOptionsBuilder<SetHeartbeatInterval<S>>where
S::HeartbeatInterval: IsUnset,
Sourcepub fn maybe_heartbeat_interval(
self,
value: Option<Option<Duration>>,
) -> RuntimeOptionsBuilder<SetHeartbeatInterval<S>>where
S::HeartbeatInterval: IsUnset,
pub fn maybe_heartbeat_interval(
self,
value: Option<Option<Duration>>,
) -> RuntimeOptionsBuilder<SetHeartbeatInterval<S>>where
S::HeartbeatInterval: IsUnset,
Source§impl<S: State> RuntimeOptionsBuilder<S>
impl<S: State> RuntimeOptionsBuilder<S>
Auto Trait Implementations§
impl<S> Freeze for RuntimeOptionsBuilder<S>
impl<S = Empty> !RefUnwindSafe for RuntimeOptionsBuilder<S>
impl<S> Send for RuntimeOptionsBuilder<S>
impl<S> Sync for RuntimeOptionsBuilder<S>
impl<S> Unpin for RuntimeOptionsBuilder<S>
impl<S> UnsafeUnpin for RuntimeOptionsBuilder<S>
impl<S = Empty> !UnwindSafe for RuntimeOptionsBuilder<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