pub struct HotReloadConfig {
pub base: HotReloadConfig,
pub watch_config: WatchConfig,
pub shutdown_timeout: Duration,
pub parallel_reload: bool,
}Expand description
Hot-reload configuration extension with watcher-specific settings
Fields§
§base: HotReloadConfigBase kernel hot reload configuration
watch_config: WatchConfigWatch configuration
shutdown_timeout: DurationGraceful shutdown timeout
parallel_reload: boolEnable parallel reloading
Implementations§
Source§impl HotReloadConfig
impl HotReloadConfig
Sourcepub fn with_base(self, base: HotReloadConfig) -> Self
pub fn with_base(self, base: HotReloadConfig) -> Self
Set base kernel hot reload configuration
Sourcepub fn with_strategy(self, strategy: ReloadStrategy) -> Self
pub fn with_strategy(self, strategy: ReloadStrategy) -> Self
Set reload strategy
Sourcepub fn with_preserve_state(self, enabled: bool) -> Self
pub fn with_preserve_state(self, enabled: bool) -> Self
Enable/disable state preservation
Sourcepub fn with_auto_rollback(self, enabled: bool) -> Self
pub fn with_auto_rollback(self, enabled: bool) -> Self
Enable/disable auto rollback
Sourcepub fn with_max_attempts(self, max: u32) -> Self
pub fn with_max_attempts(self, max: u32) -> Self
Set max reload attempts
Sourcepub fn with_reload_cooldown(self, cooldown: Duration) -> Self
pub fn with_reload_cooldown(self, cooldown: Duration) -> Self
Set reload cooldown
Sourcepub fn with_watch_config(self, watch_config: WatchConfig) -> Self
pub fn with_watch_config(self, watch_config: WatchConfig) -> Self
Set watch configuration
Sourcepub fn with_shutdown_timeout(self, timeout: Duration) -> Self
pub fn with_shutdown_timeout(self, timeout: Duration) -> Self
Set shutdown timeout
Sourcepub fn with_parallel_reload(self, enabled: bool) -> Self
pub fn with_parallel_reload(self, enabled: bool) -> Self
Enable/disable parallel reload
Trait Implementations§
Source§impl Clone for HotReloadConfig
impl Clone for HotReloadConfig
Source§fn clone(&self) -> HotReloadConfig
fn clone(&self) -> HotReloadConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HotReloadConfig
impl Debug for HotReloadConfig
Auto Trait Implementations§
impl Freeze for HotReloadConfig
impl RefUnwindSafe for HotReloadConfig
impl Send for HotReloadConfig
impl Sync for HotReloadConfig
impl Unpin for HotReloadConfig
impl UnsafeUnpin for HotReloadConfig
impl UnwindSafe for HotReloadConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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