pub struct HmrConfig {
pub enabled: bool,
pub debounce_ms: u64,
pub ignore_patterns: Vec<String>,
pub preserve_state: bool,
pub max_retries: u32,
pub show_notifications: bool,
}Fields§
§enabled: boolWhether HMR is enabled (default: true)
debounce_ms: u64Debounce time in milliseconds for file changes (default: 100)
ignore_patterns: Vec<String>Files and patterns to ignore during HMR
preserve_state: boolWhether to preserve component state during HMR (default: true)
max_retries: u32Maximum number of HMR retries before full reload (default: 3)
show_notifications: boolWhether to show HMR notifications in browser (default: true)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HmrConfig
impl<'de> Deserialize<'de> for HmrConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HmrConfig
impl RefUnwindSafe for HmrConfig
impl Send for HmrConfig
impl Sync for HmrConfig
impl Unpin for HmrConfig
impl UnwindSafe for HmrConfig
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> 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