pub struct HookConfig { /* private fields */ }Expand description
Opt-in configuration that turns the file-hook tier on for a single spawned process (and its descendants, on Linux + macOS where env-var inheritance handles re-injection automatically; Windows uses per-process injection — see slice 6 of #551).
Constructing a config does not by itself install any hooks. The
caller still has to attach it to a process via the integration
glue landing in slice 2 (NativeProcess::with_observer_hooks).
With the embed-helper feature off, this type still exists but
every method that would extract the helper sidecar returns
HookSupport::FeatureDisabled. Lets downstream consumers code
against the stable surface regardless of build flags.
Implementations§
Source§impl HookConfig
impl HookConfig
Trait Implementations§
Source§impl Clone for HookConfig
impl Clone for HookConfig
Source§fn clone(&self) -> HookConfig
fn clone(&self) -> HookConfig
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 HookConfig
impl Debug for HookConfig
Source§impl Default for HookConfig
impl Default for HookConfig
Source§fn default() -> HookConfig
fn default() -> HookConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HookConfig
impl RefUnwindSafe for HookConfig
impl Send for HookConfig
impl Sync for HookConfig
impl Unpin for HookConfig
impl UnsafeUnpin for HookConfig
impl UnwindSafe for HookConfig
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