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

Method new

cln-rpc/src/lib.rs:123–132  ·  view source on GitHub ↗
(path: P)

Source from the content-addressed store, hash-verified

121
122impl ClnRpc {
123 pub async fn new<P>(path: P) -> Result<ClnRpc>
124 where
125 P: AsRef<Path>,
126 {
127 debug!(
128 "Connecting to socket at {}",
129 path.as_ref().to_string_lossy()
130 );
131 ClnRpc::from_stream(UnixStream::connect(path).await?)
132 }
133
134 fn from_stream(stream: UnixStream) -> Result<ClnRpc> {
135 let (read, write) = stream.into_split();

Callers 4

inject_onionmsg_tlvFunction · 0.45
hkdf_sha256Function · 0.45

Calls 1

connectFunction · 0.50

Tested by 4

inject_onionmsg_tlvFunction · 0.36
hkdf_sha256Function · 0.36