pub struct RuntimeBuilder { /* private fields */ }Expand description
Builder for creating a runtime with custom configuration
Implementations§
Source§impl RuntimeBuilder
impl RuntimeBuilder
Sourcepub fn log_level(self, log_level: impl Into<String>) -> Self
pub fn log_level(self, log_level: impl Into<String>) -> Self
Set log level (trace, debug, info, warn, error)
Sourcepub fn log_format(self, log_format: LogFormat) -> Self
pub fn log_format(self, log_format: LogFormat) -> Self
Set log format
Sourcepub fn restart_policy(self, restart_policy: RestartPolicy) -> Self
pub fn restart_policy(self, restart_policy: RestartPolicy) -> Self
Set restart policy
Sourcepub fn health_check_interval(self, health_check_interval: Duration) -> Self
pub fn health_check_interval(self, health_check_interval: Duration) -> Self
Set health check interval
Sourcepub fn shutdown_timeout(self, shutdown_timeout: Duration) -> Self
pub fn shutdown_timeout(self, shutdown_timeout: Duration) -> Self
Set graceful shutdown timeout
Sourcepub fn with_launcher(self, enable_launcher: bool) -> Self
pub fn with_launcher(self, enable_launcher: bool) -> Self
Enable launcher service for dynamic node management
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuntimeBuilder
impl RefUnwindSafe for RuntimeBuilder
impl Send for RuntimeBuilder
impl Sync for RuntimeBuilder
impl Unpin for RuntimeBuilder
impl UnsafeUnpin for RuntimeBuilder
impl UnwindSafe for RuntimeBuilder
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 more