Struct tsukuyomi::server::Server[][src]

pub struct Server<S = ()> { /* fields omitted */ }

An HTTP server.

Methods

impl Server<()>
[src]

Creates a builder object for constructing a value of this type.

impl<S> Server<S> where
    S: NewService + Send + Sync + 'static,
    S::ReqBody: From<Body>,
    S::ResBody: Payload,
    S::Future: Send,
    S::InitError: Into<Box<Error + Send + Sync + 'static>>,
    S::Service: Send,
    <S::Service as Service>::Future: Send
[src]

Starts a HTTP server using a configured runtime.

Trait Implementations

impl<S: Debug> Debug for Server<S>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<S> Send for Server<S> where
    S: Send

impl<S> Sync for Server<S> where
    S: Sync