lol-core 0.9.5

A Raft implementation in Rust language.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::task::{Context, Poll};
use tonic::body::BoxBody;
use tonic::transport::Channel;
use tower::Service;

impl Service<http::Request<BoxBody>> for super::Gateway {
    type Response = <Channel as Service<http::Request<BoxBody>>>::Response;
    type Error = <Channel as Service<http::Request<BoxBody>>>::Error;
    type Future = <Channel as Service<http::Request<BoxBody>>>::Future;
    fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
        Service::poll_ready(&mut self.chan, cx)
    }
    fn call(&mut self, request: http::Request<BoxBody>) -> Self::Future {
        Service::call(&mut self.chan, request)
    }
}