pub fn hook(&self) -> HooksRegistration {
        HooksRegistration {
            events: vec![EventType::RouteCapability],
            callback: Arc::downgrade(&self.inner) as Weak<dyn Hook>,
        }
    }
/// Construct a `HooksRegistration` that will route our runner as a framework capability.
Construct a `HooksRegistration` that will route our runner as a framework capability.
Construct a ` HooksRegistration ` that will route our runner as a framework capability .
pub fn hook(&self) -> HooksRegistration {
        HooksRegistration {
            events: vec![EventType::RouteCapability],
            callback: Arc::downgrade(&self.inner) as Weak<dyn Hook>,
        }
    }
pub fn hook ( & self ) -> HooksRegistration { HooksRegistration { events : vec ! [ EventType RouteCapability ] , callback : Arc :: downgrade ( & self . inner ) as Weak < dyn Hook > , } }
Construct a `HooksRegistration` that will route our runner as a framework capability.
Construct a ` HooksRegistration ` that will route our runner as a framework capability .
&self