rust-abci 0.1.0

An implementation of the ABCI protocol used by Tendermint Core. Allows the building of ABCI apps in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use types_grpc::ABCIApplication;
use super::Service;
use websocket::sync::Server;
use websocket::server::NoTlsAcceptor;


pub struct SocketServer<H> {
    server: Server<NoTlsAcceptor>,
    app: H,
}

impl<H: ABCIApplication + 'static + Sync + Send + 'static> Service for SocketServer<H> {}

pub fn new_server<H: ABCIApplication + 'static + Sync + Send + 'static>(listen_addr: &str, app: H) -> Box<Service> {
    unimplemented!();
}