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) -> Self
pub fn logging(self, logging: LoggingConfig) -> Self
Sets the logging field.
Sourcepub fn service_discovery(self, service_discovery: ServicesConfig) -> Self
pub fn service_discovery(self, service_discovery: ServicesConfig) -> Self
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> UnsafeUnpin for Builder<T>where
T: UnsafeUnpin,
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