pub async fn open_client<S: Service>(
    addr: Addr<S>
) -> Result<RpcClient<S, ChannelTypes>>
Examples found in repository?
src/store.rs (line 18)
17
18
19
20
    pub async fn new(addr: StoreAddr) -> anyhow::Result<Self> {
        let client = open_client(addr).await?;
        Ok(Self { client })
    }
More examples
Hide additional examples
src/network.rs (line 21)
20
21
22
23
    pub async fn new(addr: P2pAddr) -> anyhow::Result<Self> {
        let client = crate::open_client(addr).await?;
        Ok(Self { client })
    }
src/gateway.rs (line 25)
24
25
26
27
    pub async fn new(addr: GatewayAddr) -> anyhow::Result<Self> {
        let client = crate::open_client::<GatewayService>(addr).await?;
        Ok(Self { client })
    }