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

Method success

plugins/lsps-plugin/src/proto/jsonrpc.rs:124–129  ·  view source on GitHub ↗
(result: R, id: T)

Source from the content-addressed store, hash-verified

122
123impl<R> JsonRpcResponse<R> {
124 pub fn success<T: Into<String>>(result: R, id: T) -> Self {
125 Self {
126 id: id.into(),
127 body: JsonRpcResponseBody::Success { result },
128 }
129 }
130
131 pub fn into_result(self) -> std::result::Result<R, RpcError> {
132 self.body.into_result()

Callers 3

validate_input_unspentFunction · 0.80
plugin_setconfig_doneFunction · 0.80
tell_waiters_successFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected