pub async fn connect(ledger_path: &Path) -> std::result::Result<gen_client::Client, RpcError> {
    let admin_rpc_path = admin_rpc_path(ledger_path);
    if !admin_rpc_path.exists() {
        Err(RpcError::Client(format!(
            "{} does not exist",
            admin_rpc_path.display()
        )))
    } else {
        ipc::connect::<_, gen_client::Client>(&format!("{}", admin_rpc_path.display())).await
    }
}
// Connect to the Admin RPC interface
Connect to the Admin RPC interface
Connect to the Admin RPC interface
pub async fn connect(ledger_path: &Path) -> std::result::Result<gen_client::Client, RpcError> {
    let admin_rpc_path = admin_rpc_path(ledger_path);
    if !admin_rpc_path.exists() {
        Err(RpcError::Client(format!(
            "{} does not exist",
            admin_rpc_path.display()
        )))
    } else {
        ipc::connect::<_, gen_client::Client>(&format!("{}", admin_rpc_path.display())).await
    }
}
pub async fn connect ( ledger_path : & Path ) -> std :: result :: Result < gen_client :: Client , RpcError > { let admin_rpc_path = admin_rpc_path ( ledger_path ) ; if ! admin_rpc_path . exists ( ) { Err ( RpcError :: Client ( format ! ( " " admin_rpc_path display ( ) ) ) ) } else { ipc :: connect :: < _ , gen_client :: Client > ( & format ! ( " " admin_rpc_path display ( ) ) ) . await } }
Connect to the Admin RPC interface
Connect to the Admin RPC interface
ledger_path
&Path