pub fn spawn_server<S, B, F>(self, mk: F) -> Runtime<NoServer>
    where
        F: FnOnce() -> S,
        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,
    {
        if let Some(s) = self.server {
            s.spawn(mk(), self.shutdown_rx.clone());
        } else {
            tracing::debug!("No server is configured")
        }

        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, if bound, 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, if bound, 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 if bound 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, F>(self, mk: F) -> Runtime<NoServer>
    where
        F: FnOnce() -> S,
        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,
    {
        if let Some(s) = self.server {
            s.spawn(mk(), self.shutdown_rx.clone());
        } else {
            tracing::debug!("No server is configured")
        }
        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 , F > ( self , mk : F ) -> Runtime < NoServer > where F : FnOnce ( ) -> S , 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 , { if let Some ( s ) = self . server { s . spawn ( mk ( ) , self . shutdown_rx . clone ( ) ) ; } else { tracing :: debug ! ( " " ) } 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, if bound, with the given `service`.
Spawns the HTTPS server if bound with the given ` service ` .
self
mk
F
self
mk
F