(stream: UnixStream)
| 132 | } |
| 133 | |
| 134 | fn from_stream(stream: UnixStream) -> Result<ClnRpc> { |
| 135 | let (read, write) = stream.into_split(); |
| 136 | |
| 137 | Ok(ClnRpc { |
| 138 | next_id: AtomicUsize::new(1), |
| 139 | read: FramedRead::new(read, JsonCodec::default()), |
| 140 | write: FramedWrite::new(write, JsonCodec::default()), |
| 141 | }) |
| 142 | } |
| 143 | |
| 144 | /// Low-level API to call the rpc. |
| 145 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected