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

Method setconfig_callback

plugins/src/lib.rs:302–310  ·  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

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> {

Callers 1

mainFunction · 0.80

Calls 1

setconfig_callbackFunction · 0.85

Tested by

no test coverage detected