Function dvm_net::serve::serve_with_drop [−][src]
pub async fn serve_with_drop<A, B>(
router: Router<A, B>,
endpoint: Endpoint,
should_close_on_drop: bool
) -> 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,