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

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

Required methods

pub fn state(&self) -> FutureResult<Option<LightBlock>, Error>[src]

Returns the latest trusted block.

pub fn status(&self) -> FutureResult<LatestStatus, Error>[src]

Returns the latest status.

Loading content...

Provided methods

pub fn to_delegate<M: Metadata>(self) -> IoDelegate<Self, M>[src]

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...