Struct HotReloadConfig
pub struct HotReloadConfig {
pub enabled: bool,
pub reload_timeout: Duration,
pub preserve_state: bool,
pub max_retries: u32,
pub retry_backoff: Duration,
pub validate_before_swap: bool,
pub keep_fallback: bool,
}Expand description
Configuration for kernel hot reload operations.
Fields§
§enabled: boolEnable hot reload functionality.
reload_timeout: DurationTimeout for reload operations.
preserve_state: boolWhether to preserve kernel state during reload.
max_retries: u32Maximum retries for failed reloads.
retry_backoff: DurationBackoff duration between retries.
validate_before_swap: boolWhether to validate new code before swapping.
keep_fallback: boolKeep old code as fallback in case of failure.
Implementations§
§impl HotReloadConfig
impl HotReloadConfig
pub fn new() -> HotReloadConfig
pub fn new() -> HotReloadConfig
Create a new hot reload configuration.
pub fn with_enabled(self, enabled: bool) -> HotReloadConfig
pub fn with_enabled(self, enabled: bool) -> HotReloadConfig
Enable or disable hot reload.
pub fn with_timeout(self, timeout: Duration) -> HotReloadConfig
pub fn with_timeout(self, timeout: Duration) -> HotReloadConfig
Set reload timeout.
pub fn with_preserve_state(self, preserve: bool) -> HotReloadConfig
pub fn with_preserve_state(self, preserve: bool) -> HotReloadConfig
Enable or disable state preservation.
pub fn with_max_retries(self, retries: u32) -> HotReloadConfig
pub fn with_max_retries(self, retries: u32) -> HotReloadConfig
Set maximum retries.
Trait Implementations§
§impl Clone for HotReloadConfig
impl Clone for HotReloadConfig
§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 more§impl Debug for HotReloadConfig
impl Debug for HotReloadConfig
§impl Default for HotReloadConfig
impl Default for HotReloadConfig
§fn default() -> HotReloadConfig
fn default() -> HotReloadConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HotReloadConfig
impl RefUnwindSafe for HotReloadConfig
impl Send for HotReloadConfig
impl Sync for HotReloadConfig
impl Unpin for HotReloadConfig
impl UnwindSafe for HotReloadConfig
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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,
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.