lxy 0.1.1

A convenient async http and RPC framework in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
//! Server abstraction for lxy framework
use std::{future::Future, pin::Pin};

pub trait Server {
  type Future: Future<Output = ()> + Send;

  fn start(&self) -> Self::Future;
}

pub type BoxedServer = Box<dyn Server<Future = Pin<Box<dyn Future<Output = ()> + Send>>> + Send>;