pub fn spawn_server<S, B>(self, service: S) -> Runtime<NoServer>
    where
        S: Service<hyper::Request<hyper::Body>, Response = hyper::Response<B>>
            + Clone
            + Send
            + 'static,
        S::Error: std::error::Error + Send + Sync,
        S::Future: Send,
        B: hyper::body::HttpBody + Send + 'static,
        B::Data: Send,
        B::Error: std::error::Error + Send + Sync,
    {
        self.server.spawn(service, self.shutdown_rx.clone());

        Runtime {
            admin: self.admin,
            client: self.client,
            error_delay: self.error_delay,
            initialized: self.initialized,
            server: NoServer(()),
            shutdown_rx: self.shutdown_rx,
            shutdown: self.shutdown,
        }
    }
/// Spawns the HTTPS server with the given `service`. A runtime handle without the bound server
/// configuration is returned.
///
/// The server shuts down gracefully when the runtime is shutdown.
Spawns the HTTPS server with the given `service`. A runtime handle without the bound server
configuration is returned.

The server shuts down gracefully when the runtime is shutdown.
Spawns the HTTPS server with the given ` service ` . A runtime handle without the bound server configuration is returned . The server shuts down gracefully when the runtime is shutdown .
pub fn spawn_server<S, B>(self, service: S) -> Runtime<NoServer>
    where
        S: Service<hyper::Request<hyper::Body>, Response = hyper::Response<B>>
            + Clone
            + Send
            + 'static,
        S::Error: std::error::Error + Send + Sync,
        S::Future: Send,
        B: hyper::body::HttpBody + Send + 'static,
        B::Data: Send,
        B::Error: std::error::Error + Send + Sync,
    {
        self.server.spawn(service, self.shutdown_rx.clone());
        Runtime {
            admin: self.admin,
            client: self.client,
            error_delay: self.error_delay,
            initialized: self.initialized,
            server: NoServer(()),
            shutdown_rx: self.shutdown_rx,
            shutdown: self.shutdown,
        }
    }
pub fn spawn_server < S , B > ( self , service : S ) -> Runtime < NoServer > where S : Service < hyper :: Request < hyper :: Body > , Response = hyper :: Response < B > > + Clone + Send + ' static , S :: Error : std :: error :: Error + Send + Sync , S :: Future : Send , B : hyper :: body :: HttpBody + Send + ' static , B :: Data : Send , B :: Error : std :: error :: Error + Send + Sync , { self . server . spawn ( service , self . shutdown_rx . clone ( ) ) ; Runtime { admin : self . admin , client : self . client , error_delay : self . error_delay , initialized : self . initialized , server : NoServer ( ( ) ) , shutdown_rx : self . shutdown_rx , shutdown : self . shutdown , } }
Spawns the HTTPS server with the given `service`.
Spawns the HTTPS server with the given ` service ` .
self
service
S
self
service
S