pub struct SelfHealingConfig {
pub hook_starts_daemon: bool,
pub daemon_installs_hooks: bool,
pub auto_start_cooldown_secs: u64,
pub auto_start_timeout_secs: u64,
pub self_healing_log_level: SelfHealingLogLevel,
}Expand description
Self-healing behaviors for the hook and daemon.
Fields§
§hook_starts_daemon: boolWhether the hook should attempt to auto-start the daemon.
daemon_installs_hooks: boolWhether the daemon should auto-install Claude Code hooks on startup.
auto_start_cooldown_secs: u64Cooldown between auto-start attempts in seconds.
auto_start_timeout_secs: u64Time to wait for the daemon socket after spawning in seconds.
Also aliased as daemon_start_timeout for backwards compatibility.
self_healing_log_level: SelfHealingLogLevelLog level for self-healing diagnostic events. Default: info.
Override via RCH_SELF_HEALING_LOG_LEVEL=debug|info|warn|error.
Implementations§
Source§impl SelfHealingConfig
impl SelfHealingConfig
Sourcepub fn with_env_overrides(self) -> Self
pub fn with_env_overrides(self) -> Self
Apply environment variable overrides to this config.
Supported environment variables:
RCH_NO_SELF_HEALING=1- Master switch to disable all self-healingRCH_HOOK_STARTS_DAEMON=0|1- Control hook auto-starting daemonRCH_DAEMON_INSTALLS_HOOKS=0|1- Control daemon auto-installing hooksRCH_AUTO_START_TIMEOUT_SECS=<seconds>- Max wait for daemon startRCH_AUTO_START_COOLDOWN_SECS=<seconds>- Min time between auto-starts
Trait Implementations§
Source§impl Clone for SelfHealingConfig
impl Clone for SelfHealingConfig
Source§fn clone(&self) -> SelfHealingConfig
fn clone(&self) -> SelfHealingConfig
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 SelfHealingConfig
impl Debug for SelfHealingConfig
Source§impl Default for SelfHealingConfig
impl Default for SelfHealingConfig
Source§impl<'de> Deserialize<'de> for SelfHealingConfig
impl<'de> Deserialize<'de> for SelfHealingConfig
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 SelfHealingConfig
impl RefUnwindSafe for SelfHealingConfig
impl Send for SelfHealingConfig
impl Sync for SelfHealingConfig
impl Unpin for SelfHealingConfig
impl UnsafeUnpin for SelfHealingConfig
impl UnwindSafe for SelfHealingConfig
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