pub struct Builder<T>(/* private fields */);Expand description
A builder for RuntimeConfig
Implementations§
Source§impl Builder<DiagnosticsStage>
impl Builder<DiagnosticsStage>
Sourcepub fn diagnostics(
self,
diagnostics: DiagnosticsConfig,
) -> Builder<HealthChecksStage>
pub fn diagnostics( self, diagnostics: DiagnosticsConfig, ) -> Builder<HealthChecksStage>
Sets the diagnostics field.
Source§impl Builder<HealthChecksStage>
impl Builder<HealthChecksStage>
Sourcepub fn health_checks(
self,
health_checks: HealthChecksConfig,
) -> Builder<Complete>
pub fn health_checks( self, health_checks: HealthChecksConfig, ) -> Builder<Complete>
Sets the health_checks field.
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn logging(self, logging: LoggingConfig) -> Builder<Complete>
pub fn logging(self, logging: LoggingConfig) -> Builder<Complete>
Sets the logging field.
Sourcepub fn service_discovery(
self,
service_discovery: ServicesConfig,
) -> Builder<Complete>
pub fn service_discovery( self, service_discovery: ServicesConfig, ) -> Builder<Complete>
Sets the service_discovery field.
Sourcepub fn build(self) -> RuntimeConfig
pub fn build(self) -> RuntimeConfig
Consumes the builder, returning a RuntimeConfig.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnwindSafe for Builder<T>where
T: 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<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. 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<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more