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

Method rpcmethod_from_builder

plugins/src/lib.rs:295–299  ·  view source on GitHub ↗
(mut self, rpc_method: RpcMethodBuilder<S>)

Source from the content-addressed store, hash-verified

293 }
294
295 pub fn rpcmethod_from_builder(mut self, rpc_method: RpcMethodBuilder<S>) -> Builder<S, I, O> {
296 self.rpcmethods
297 .insert(rpc_method.name.to_string(), rpc_method.build());
298 self
299 }
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>

Callers 3

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 3

insertMethod · 0.45
to_stringMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected