MCPcopy Create free account
hub / github.com/ElementsProject/lightning / setconfig_callback

Method setconfig_callback

plugins/src/lib.rs:303–311  ·  view source on GitHub ↗

Register a callback for setconfig to accept changes for dynamic options

(mut self, setconfig_callback: C)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.80

Calls 1

setconfig_callbackFunction · 0.85

Tested by

no test coverage detected