pub struct HotReloadConfig {
pub enable: bool,
pub watch_paths: Vec<PathBuf>,
pub debounce_ms: u64,
}Expand description
Configuration for experimental hot-reload support.
Fields§
§enable: bool§watch_paths: Vec<PathBuf>§debounce_ms: u64Implementations§
Source§impl HotReloadConfig
impl HotReloadConfig
pub fn disabled() -> HotReloadConfig
pub fn enabled(paths: Vec<PathBuf>, debounce: Duration) -> HotReloadConfig
pub fn debounce_duration(&self) -> Duration
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 (const: unstable) · 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
Source§impl Default for HotReloadConfig
impl Default for HotReloadConfig
Source§fn default() -> HotReloadConfig
fn default() -> HotReloadConfig
Returns the “default value” for a type. Read more
Source§impl Serialize for HotReloadConfig
impl Serialize for HotReloadConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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 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