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

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

Required methods

fn state(&self) -> BoxFuture<Result<Option<LightBlock>>>[src]

Returns the latest trusted block.

fn status(&self) -> BoxFuture<Result<LatestStatus>>[src]

Returns the latest status.

Loading content...

Provided methods

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