{"action":"created","issue":{"url":"https://api.github.com/repos/hyperium/hyper/issues/1704","repository_url":"https://api.github.com/repos/hyperium/hyper","labels_url":"https://api.github.com/repos/hyperium/hyper/issues/1704/labels{/name}","comments_url":"https://api.github.com/repos/hyperium/hyper/issues/1704/comments","events_url":"https://api.github.com/repos/hyperium/hyper/issues/1704/events","html_url":"https://github.com/hyperium/hyper/issues/1704","id":379060716,"node_id":"MDU6SXNzdWUzNzkwNjA3MTY=","number":1704,"title":"Enable Specifying Dependencies of `serve`","user":{"login":"cramertj","id":5963049,"node_id":"MDQ6VXNlcjU5NjMwNDk=","avatar_url":"https://avatars1.githubusercontent.com/u/5963049?v=4","gravatar_id":"","url":"https://api.github.com/users/cramertj","html_url":"https://github.com/cramertj","followers_url":"https://api.github.com/users/cramertj/followers","following_url":"https://api.github.com/users/cramertj/following{/other_user}","gists_url":"https://api.github.com/users/cramertj/gists{/gist_id}","starred_url":"https://api.github.com/users/cramertj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cramertj/subscriptions","organizations_url":"https://api.github.com/users/cramertj/orgs","repos_url":"https://api.github.com/users/cramertj/repos","events_url":"https://api.github.com/users/cramertj/events{/privacy}","received_events_url":"https://api.github.com/users/cramertj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-09T08:06:02Z","updated_at":"2018-11-12T18:40:39Z","closed_at":null,"author_association":"NONE","body":"Currently, [several bounds of the `serve` function](https://github.com/hyperium/hyper/blob/master/src/server/mod.rs#L339) rely on private traits and types which aren't exposed from `hyper`. This makes it impossible to create a function in another library which accepts a compatible `Executor` type and passes it onto the `serve` function. Would it be possible to either expose these traits, or expose the [`Exec enum`](https://github.com/hyperium/hyper/blob/master/src/common/exec.rs#L22) which implements them, so that libraries which wrap hyper can pass on this dependency to their users?"},"comment":{"url":"https://api.github.com/repos/hyperium/hyper/issues/comments/437986679","html_url":"https://github.com/hyperium/hyper/issues/1704#issuecomment-437986679","issue_url":"https://api.github.com/repos/hyperium/hyper/issues/1704","id":437986679,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzk4NjY3OQ==","user":{"login":"cramertj","id":5963049,"node_id":"MDQ6VXNlcjU5NjMwNDk=","avatar_url":"https://avatars1.githubusercontent.com/u/5963049?v=4","gravatar_id":"","url":"https://api.github.com/users/cramertj","html_url":"https://github.com/cramertj","followers_url":"https://api.github.com/users/cramertj/followers","following_url":"https://api.github.com/users/cramertj/following{/other_user}","gists_url":"https://api.github.com/users/cramertj/gists{/gist_id}","starred_url":"https://api.github.com/users/cramertj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cramertj/subscriptions","organizations_url":"https://api.github.com/users/cramertj/orgs","repos_url":"https://api.github.com/users/cramertj/repos","events_url":"https://api.github.com/users/cramertj/events{/privacy}","received_events_url":"https://api.github.com/users/cramertj/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T18:40:39Z","updated_at":"2018-11-12T18:40:39Z","author_association":"NONE","body":"Yeah, ideally you'd have something like `for<T: Future<Output = ()> + Send> Executor<T>`, but alas the trait system isn't there yet."}}
{"actor":{"display_login":"cramertj"}}