Register a callback for setconfig to accept changes for dynamic options
(mut self, setconfig_callback: C)
| 300 | |
| 301 | /// Register a callback for setconfig to accept changes for dynamic options |
| 302 | pub fn setconfig_callback<C, F>(mut self, setconfig_callback: C) -> Builder<S, I, O> |
| 303 | where |
| 304 | C: Send + Sync + 'static, |
| 305 | C: Fn(Plugin<S>, Request) -> F + 'static, |
| 306 | F: Future<Output = Response> + Send + 'static, |
| 307 | { |
| 308 | self.setconfig_callback = Some(Box::new(move |p, r| Box::pin(setconfig_callback(p, r)))); |
| 309 | self |
| 310 | } |
| 311 | |
| 312 | /// Send true value for "dynamic" field in "getmanifest" response |
| 313 | pub fn dynamic(mut self) -> Builder<S, I, O> { |
no test coverage detected