pub fn hooks(work_scheduler: &Arc<Self>) -> Vec<HooksRegistration> {
        vec![HooksRegistration {
            events: vec![EventType::ResolveInstance, EventType::RouteCapability],
            callback: Arc::downgrade(work_scheduler) as Weak<dyn Hook>,
        }]
    }
/// Helper to specify hooks associated with `WorkScheduler`. Accepts `&Arc<WorkScheduler>` to
/// produce references needed by `HooksRegistration` without consuming `Arc`.
Helper to specify hooks associated with `WorkScheduler`.
Helper to specify hooks associated with ` WorkScheduler ` .
pub fn hooks(work_scheduler: &Arc<Self>) -> Vec<HooksRegistration> {
        vec![HooksRegistration {
            events: vec![EventType::ResolveInstance, EventType::RouteCapability],
            callback: Arc::downgrade(work_scheduler) as Weak<dyn Hook>,
        }]
    }
pub fn hooks ( work_scheduler : & Arc < Self > ) -> Vec < HooksRegistration > { vec ! [ HooksRegistration { events vec [ EventType ResolveInstance EventType RouteCapability ] callback Arc downgrade ( work_scheduler ) as Weak dyn Hook } ] }
Helper to specify hooks associated with `WorkScheduler`.
Helper to specify hooks associated with ` WorkScheduler ` .
work_scheduler
&Arc<Self>