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

Method rpcmethod_from_builder

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

Source from the content-addressed store, hash-verified

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

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