pub struct RegisteredHook {
pub hook: Arc<dyn Hook>,
pub source: HookSource,
pub priority: i32,
}Expand description
已注册的 Hook 条目 — 包含 Hook 实例、来源和优先级。
Fields§
§hook: Arc<dyn Hook>Hook 实例。
source: HookSource来源标识。
priority: i32优先级(数值越小越先执行)。
Auto Trait Implementations§
impl Freeze for RegisteredHook
impl !RefUnwindSafe for RegisteredHook
impl Send for RegisteredHook
impl Sync for RegisteredHook
impl Unpin for RegisteredHook
impl UnsafeUnpin for RegisteredHook
impl !UnwindSafe for RegisteredHook
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