Function dvm_net::serve::serve_with_shutdown [−][src]
pub async fn serve_with_shutdown<A, B, F>(
router: Router<A, B>,
endpoint: Endpoint,
signal: F
) -> Result<Option<Guard>, StdError> where
A: Service<Request<Body>, Response = Response<BoxBody>> + Clone + Send + 'static,
A::Future: Send + 'static,
A::Error: Into<StdError> + Send,
B: Service<Request<Body>, Response = Response<BoxBody>> + Clone + Send + 'static,
B::Future: Send + 'static,
B::Error: Into<StdError> + Send,
F: Future<Output = ()>,