zon_core 0.0.4

part of a new WIP, very incomplete async http service stack
Documentation
use crate::HttpService;

pub trait IntoHttpService<B: Send, X> {
    type Service: HttpService<B, ResponseBody = Self::ResponseBody>;
    type ResponseBody;
    fn into_svc(self) -> Self::Service;
}

#[doc(hidden)]
pub enum ImplIntoHttpServiceForServiceTag {}

impl<B, S> IntoHttpService<B, ImplIntoHttpServiceForServiceTag> for S
where
    B: Send,
    S: HttpService<B>,
{
    type Service = S;
    type ResponseBody = <S as HttpService<B>>::ResponseBody;

    fn into_svc(self) -> Self::Service {
        self
    }
}