[][src]Trait izanami::server::Backend

pub trait Backend<I, S>: BackendImpl<I, S> { }

A trait for abstracting the process around executing the HTTP server.

Implementors

impl<I, S, Bd> Backend<I, S> for CurrentThread where
    I: Stream + 'static,
    I::Item: AsyncRead + AsyncWrite + Send + 'static,
    I::Error: Into<Box<dyn Error + Send + Sync + 'static>>,
    S: MakeServiceRef<I::Item, Request<RequestBody>, Response = Response<Bd>> + 'static,
    S::Error: Into<Box<dyn Error + Send + Sync + 'static>>,
    S::MakeError: Into<Box<dyn Error + Send + Sync + 'static>>,
    S::Future: 'static,
    S::Service: 'static,
    <S::Service as Service<Request<RequestBody>>>::Future: 'static,
    Bd: BufStream + Send + 'static,
    Bd::Item: Send,
    Bd::Error: Into<Box<dyn Error + Send + Sync + 'static>>, 
[src]

impl<I, S, Bd> Backend<I, S> for Threadpool where
    I: Stream + Send + 'static,
    I::Item: AsyncRead + AsyncWrite + Send + 'static,
    I::Error: Into<Box<dyn Error + Send + Sync + 'static>>,
    S: MakeServiceRef<I::Item, Request<RequestBody>, Response = Response<Bd>> + Send + Sync + 'static,
    S::Error: Into<Box<dyn Error + Send + Sync + 'static>>,
    S::MakeError: Into<Box<dyn Error + Send + Sync + 'static>>,
    S::Future: Send + 'static,
    S::Service: Send + 'static,
    <S::Service as Service<Request<RequestBody>>>::Future: Send + 'static,
    Bd: BufStream + Send + 'static,
    Bd::Item: Send,
    Bd::Error: Into<Box<dyn Error + Send + Sync + 'static>>, 
[src]

Loading content...