httpbis 0.9.1

Rust implementation of HTTP/2 protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::future::Future;
use std::pin::Pin;
use tokio::runtime::Handle;

pub trait Executor {
    fn execute(&self, f: Pin<Box<dyn Future<Output = ()> + Send + 'static>>);
}

impl Executor for Handle {
    fn execute(&self, f: Pin<Box<dyn Future<Output = ()> + Send + 'static>>) {
        self.spawn(f);
    }
}