pub trait HttpServerLauncher: Sync + Send {
    // Required methods
    fn new() -> Self;
    fn start_with_graceful_shutdown<F>(
        &self,
        cfg: HttpTracker,
        tracker: Arc<Tracker>,
        shutdown_signal: F
    ) -> (SocketAddr, BoxFuture<'static, ()>)
       where F: Future<Output = ()> + Send + 'static;
}
Expand description

Trait to be implemented by a HTTP server launcher for the tracker.

A launcher is responsible for starting the server and returning the SocketAddr it is bound to.

Required Methods§

source

fn new() -> Self

source

fn start_with_graceful_shutdown<F>( &self, cfg: HttpTracker, tracker: Arc<Tracker>, shutdown_signal: F ) -> (SocketAddr, BoxFuture<'static, ()>)where F: Future<Output = ()> + Send + 'static,

Implementors§