avalanche-types 0.0.54

Avalanche types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub mod client;
pub mod server;

/// ref: https://pkg.go.dev/net/http#Handler
#[tonic::async_trait]
pub trait Handler {
    async fn serve_http(
        &mut self,
        req: http::Request<String>,
    ) -> std::io::Result<http::Response<String>>;

    async fn serve_http_simple(
        &mut self,
        req: http::Request<String>,
    ) -> std::io::Result<http::Response<String>>;
}