pub struct HooksRuntimeConfig { /* private fields */ }Expand description
Shared dynamic hooks configuration.
Implementations§
Source§impl HooksRuntimeConfig
impl HooksRuntimeConfig
Sourcepub fn new(config: HooksConfig) -> Self
pub fn new(config: HooksConfig) -> Self
Creates a dynamic hook config handle with the supplied initial snapshot.
Sourcepub fn default_enabled() -> Self
pub fn default_enabled() -> Self
Creates a dynamic hook config handle with built-in defaults.
Sourcepub fn snapshot(&self) -> Arc<HooksConfig> ⓘ
pub fn snapshot(&self) -> Arc<HooksConfig> ⓘ
Returns the current hooks configuration snapshot.
Sourcepub fn update(&self, config: HooksConfig) -> HooksConfig
pub fn update(&self, config: HooksConfig) -> HooksConfig
Atomically replaces the hooks configuration for future hook invocations.
Trait Implementations§
Source§impl Clone for HooksRuntimeConfig
impl Clone for HooksRuntimeConfig
Auto Trait Implementations§
impl Freeze for HooksRuntimeConfig
impl RefUnwindSafe for HooksRuntimeConfig
impl Send for HooksRuntimeConfig
impl Sync for HooksRuntimeConfig
impl Unpin for HooksRuntimeConfig
impl UnsafeUnpin for HooksRuntimeConfig
impl UnwindSafe for HooksRuntimeConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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