async fn post_raw(&self, message: impl serde::Serialize) -> Result<Output, failure::Error> {
        let res = self
            .client
            .post(&self.rpc_addr)
            .json(&message)
            .send()
            .await?;
        if res.status() != reqwest::StatusCode::OK {
            failure::bail!(
                "Post query responded with a non-OK response: {}",
                res.status()
            );
        }
        let reply: Output = res.json().await.unwrap();

        Ok(reply)
    }
/// Performs a POST query to the JSON RPC endpoint,
/// and decodes the response, returning the decoded `serde_json::Value`.
/// `Ok` is returned only for successful calls, for any kind of error
/// the `Err` variant is returned (including the failed RPC method
/// execution response).
Performs a POST query to the JSON RPC endpoint,
and decodes the response, returning the decoded `serde_json::Value`.
`Ok` is returned only for successful calls, for any kind of error
the `Err` variant is returned (including the failed RPC method
execution response).
Performs a POST query to the JSON RPC endpoint and decodes the response returning the decoded ` serde_json :: Value ` . ` Ok ` is returned only for successful calls for any kind of error the ` Err ` variant is returned ( including the failed RPC method execution response ) .
async fn post_raw(&self, message: impl serde::Serialize) -> Result<Output, failure::Error> {
        let res = self
            .client
            .post(&self.rpc_addr)
            .json(&message)
            .send()
            .await?;
        if res.status() != reqwest::StatusCode::OK {
            failure::bail!(
                "Post query responded with a non-OK response: {}",
                res.status()
            );
        }
        let reply: Output = res.json().await.unwrap();
        Ok(reply)
    }
async fn post_raw ( & self , message : impl serde :: Serialize ) -> Result < Output , failure :: Error > { let res = self . client . post ( & self . rpc_addr ) . json ( & message ) . send ( ) . await ? ; if res . status ( ) != reqwest :: StatusCode :: OK { failure :: bail ! ( " " res status ( ) ) ; } let reply : Output = res . json ( ) . await . unwrap ( ) ; Ok ( reply ) }
Performs a POST query to the JSON RPC endpoint,
and decodes the response, returning the decoded `serde_json::Value`.
Performs a POST query to the JSON RPC endpoint and decodes the response returning the decoded ` serde_json :: Value ` .
&self
message
impl serde::Serialize