{"action":"created","issue":{"url":"https://api.github.com/repos/hyperium/hyper/issues/1663","repository_url":"https://api.github.com/repos/hyperium/hyper","labels_url":"https://api.github.com/repos/hyperium/hyper/issues/1663/labels{/name}","comments_url":"https://api.github.com/repos/hyperium/hyper/issues/1663/comments","events_url":"https://api.github.com/repos/hyperium/hyper/issues/1663/events","html_url":"https://github.com/hyperium/hyper/issues/1663","id":365011035,"node_id":"MDU6SXNzdWUzNjUwMTEwMzU=","number":1663,"title":"Server closure example","user":{"login":"paperplanes53","id":25125141,"node_id":"MDQ6VXNlcjI1MTI1MTQx","avatar_url":"https://avatars3.githubusercontent.com/u/25125141?v=4","gravatar_id":"","url":"https://api.github.com/users/paperplanes53","html_url":"https://github.com/paperplanes53","followers_url":"https://api.github.com/users/paperplanes53/followers","following_url":"https://api.github.com/users/paperplanes53/following{/other_user}","gists_url":"https://api.github.com/users/paperplanes53/gists{/gist_id}","starred_url":"https://api.github.com/users/paperplanes53/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paperplanes53/subscriptions","organizations_url":"https://api.github.com/users/paperplanes53/orgs","repos_url":"https://api.github.com/users/paperplanes53/repos","events_url":"https://api.github.com/users/paperplanes53/events{/privacy}","received_events_url":"https://api.github.com/users/paperplanes53/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-28T19:22:53Z","updated_at":"2018-09-28T19:57:11Z","closed_at":"2018-09-28T19:53:46Z","author_association":"NONE","body":"I used the example in the for fn serve in the link below.\r\n \r\n[hyper serve example](https://docs.rs/hyper/0.12.10/hyper/server/struct.Builder.html#method.serve)\r\nThe type of the `new_service` variable is `hyper::Server<_, [closure@src/installed.rs:105:35: 109:18]>`. However, isn't the type supposed to resolve to Server<_, hyper::Body>. \r\n\r\nDo you have any ideas on how to fix this or know if I am using Server incorrectly?\r\n"},"comment":{"url":"https://api.github.com/repos/hyperium/hyper/issues/comments/425548727","html_url":"https://github.com/hyperium/hyper/issues/1663#issuecomment-425548727","issue_url":"https://api.github.com/repos/hyperium/hyper/issues/1663","id":425548727,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNTU0ODcyNw==","user":{"login":"seanmonstar","id":51479,"node_id":"MDQ6VXNlcjUxNDc5","avatar_url":"https://avatars1.githubusercontent.com/u/51479?v=4","gravatar_id":"","url":"https://api.github.com/users/seanmonstar","html_url":"https://github.com/seanmonstar","followers_url":"https://api.github.com/users/seanmonstar/followers","following_url":"https://api.github.com/users/seanmonstar/following{/other_user}","gists_url":"https://api.github.com/users/seanmonstar/gists{/gist_id}","starred_url":"https://api.github.com/users/seanmonstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanmonstar/subscriptions","organizations_url":"https://api.github.com/users/seanmonstar/orgs","repos_url":"https://api.github.com/users/seanmonstar/repos","events_url":"https://api.github.com/users/seanmonstar/events{/privacy}","received_events_url":"https://api.github.com/users/seanmonstar/received_events","type":"User","site_admin":false},"created_at":"2018-09-28T19:57:11Z","updated_at":"2018-09-28T19:57:11Z","author_association":"MEMBER","body":"`NewService` is a trait, you can't declare a type that holds a generic with the exact trait. Any type could implement it, and they could be different sizes in memory. If you wish to be able to hold any type as well, you need to make your type generic, similar to how `hyper::Server` is."}}
{"actor":{"display_login":"seanmonstar"}}