[][src]Trait tendermint_light_node::rpc::Rpc

pub trait Rpc: Sized + Send + Sync + 'static {
    fn state(&self) -> FutureResult<Option<LightBlock>, Error>;
fn status(&self) -> FutureResult<LatestStatus, Error>; fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M> { ... } }

Required methods

fn state(&self) -> FutureResult<Option<LightBlock>, Error>

Returns the latest trusted block.

fn status(&self) -> FutureResult<LatestStatus, Error>

Returns the latest status.

Loading content...

Provided methods

fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>

Create an IoDelegate, wiring rpc calls to the trait methods.

Loading content...

Implementors

impl<H> Rpc for Server<H> where
    H: Handle + Send + Sync + 'static, 
[src]

Loading content...