pub struct PluginManager;Implementations§
Source§impl PluginManager
impl PluginManager
pub fn init()
pub fn with_registry<F, R>(f: F) -> Option<R>where
F: FnOnce(&PluginRegistry) -> R,
pub fn with_registry_mut<F, R>(f: F) -> Option<R>where
F: FnOnce(&mut PluginRegistry) -> R,
pub fn fire_hook(hook: &HookPoint) -> Vec<HookResult>
pub fn fire_hook_background(hook: HookPoint)
Sourcepub fn has_listener(hook_name: &str) -> bool
pub fn has_listener(hook_name: &str) -> bool
True if any enabled plugin declares hook_name. A cheap guard so the hot
path never spawns a hook thread when nothing would run — the default
(no plugins installed → registry uninitialized → false).
Sourcepub fn notify(hook: HookPoint)
pub fn notify(hook: HookPoint)
Fire a hook in the background, but only when a plugin is actually
listening for it. Call sites should prefer this over
fire_hook_background so they stay zero-cost without plugins.
Sourcepub fn tool_specs() -> Vec<PluginToolSpec>
pub fn tool_specs() -> Vec<PluginToolSpec>
Flattened [[tools]] from all enabled plugins (EPIC 12.11). Empty unless
plugins are installed + enabled, so it is zero-cost by default.
Auto Trait Implementations§
impl Freeze for PluginManager
impl RefUnwindSafe for PluginManager
impl Send for PluginManager
impl Sync for PluginManager
impl Unpin for PluginManager
impl UnsafeUnpin for PluginManager
impl UnwindSafe for PluginManager
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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