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

Method map

plugins/lsps-plugin/src/proto/jsonrpc.rs:147–155  ·  view source on GitHub ↗
(self, f: F)

Source from the content-addressed store, hash-verified

145 }
146
147 pub fn map<U, F>(self, f: F) -> JsonRpcResponse<U>
148 where
149 F: FnOnce(R) -> U,
150 {
151 JsonRpcResponse {
152 id: self.id,
153 body: self.body.map(f),
154 }
155 }
156
157 pub fn unwrap(self) -> R {
158 self.body.unwrap()

Callers 15

fromMethod · 0.80
fromMethod · 0.80
from_strMethod · 0.80
try_fromMethod · 0.80
deserializeMethod · 0.80
test_funding_cancel_raceFunction · 0.80
currencyrateFunction · 0.80
listcurrencyratesFunction · 0.80
newMethod · 0.80
reply_membersMethod · 0.80
fresh_pricesMethod · 0.80

Calls

no outgoing calls