pub struct RegisteredHooks { /* private fields */ }Expand description
Collection of SDK hooks registered before runtime construction.
Implementations§
Source§impl RegisteredHooks
impl RegisteredHooks
Sourcepub fn register(
&mut self,
plugin_id: PluginId,
priority: RegisteredHookPriority,
hook: Hook,
)
pub fn register( &mut self, plugin_id: PluginId, priority: RegisteredHookPriority, hook: Hook, )
Register a hook for one plugin id.
Sourcepub fn instantiate(&self) -> Result<Hooks>
pub fn instantiate(&self) -> Result<Hooks>
Convert registered SDK hooks into a runtime hook registry.
Trait Implementations§
Source§impl Clone for RegisteredHooks
impl Clone for RegisteredHooks
Source§fn clone(&self) -> RegisteredHooks
fn clone(&self) -> RegisteredHooks
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 RegisteredHooks
impl Debug for RegisteredHooks
Source§impl Default for RegisteredHooks
impl Default for RegisteredHooks
Source§fn default() -> RegisteredHooks
fn default() -> RegisteredHooks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RegisteredHooks
impl !UnwindSafe for RegisteredHooks
impl Freeze for RegisteredHooks
impl Send for RegisteredHooks
impl Sync for RegisteredHooks
impl Unpin for RegisteredHooks
impl UnsafeUnpin for RegisteredHooks
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