[][src]Trait tendermint_rpc::response::Response

pub trait Response: Serialize + DeserializeOwned + Sized {
    fn from_string(response: impl AsRef<[u8]>) -> Result<Self, Error> { ... }
fn from_reader(reader: impl Read) -> Result<Self, Error> { ... } }

JSON-RPC responses

Provided methods

fn from_string(response: impl AsRef<[u8]>) -> Result<Self, Error>

Parse a JSON-RPC response from a JSON string

fn from_reader(reader: impl Read) -> Result<Self, Error>

Parse a JSON-RPC response from an io::Reader

Loading content...

Implementors

impl Response for tendermint_rpc::endpoint::abci_info::Response[src]

impl Response for tendermint_rpc::endpoint::abci_query::Response[src]

impl Response for tendermint_rpc::endpoint::block::Response[src]

impl Response for tendermint_rpc::endpoint::block_results::Response[src]

impl Response for tendermint_rpc::endpoint::blockchain::Response[src]

impl Response for tendermint_rpc::endpoint::broadcast::tx_async::Response[src]

impl Response for tendermint_rpc::endpoint::broadcast::tx_commit::Response[src]

impl Response for tendermint_rpc::endpoint::broadcast::tx_sync::Response[src]

impl Response for tendermint_rpc::endpoint::commit::Response[src]

impl Response for tendermint_rpc::endpoint::evidence::Response[src]

impl Response for tendermint_rpc::endpoint::genesis::Response[src]

impl Response for tendermint_rpc::endpoint::health::Response[src]

impl Response for tendermint_rpc::endpoint::net_info::Response[src]

impl Response for tendermint_rpc::endpoint::status::Response[src]

impl Response for tendermint_rpc::endpoint::subscribe::Response[src]

Subscribe does not have a meaningful response at the moment.

fn from_string(_response: impl AsRef<[u8]>) -> Result<Self, Error>[src]

We throw away response data JSON string so swallow errors and return the empty Response

fn from_reader(_reader: impl Read) -> Result<Self, Error>[src]

We throw away responses in subscribe to swallow errors from the io::Reader and provide the Response

impl Response for tendermint_rpc::endpoint::unsubscribe::Response[src]

Unsubscribe does not have a meaningful response at the moment.

fn from_string(_response: impl AsRef<[u8]>) -> Result<Self, Error>[src]

We throw away response data JSON string so swallow errors and return the empty Response

fn from_reader(_reader: impl Read) -> Result<Self, Error>[src]

We throw away responses in unsubscribe to swallow errors from the io::Reader and provide the Response

impl Response for tendermint_rpc::endpoint::validators::Response[src]

impl Response for Event[src]

Loading content...