{"action":"created","issue":{"url":"https://api.github.com/repos/tokio-rs/tokio-core/issues/102","repository_url":"https://api.github.com/repos/tokio-rs/tokio-core","labels_url":"https://api.github.com/repos/tokio-rs/tokio-core/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/tokio-rs/tokio-core/issues/102/comments","events_url":"https://api.github.com/repos/tokio-rs/tokio-core/issues/102/events","html_url":"https://github.com/tokio-rs/tokio-core/pull/102","id":189232035,"number":102,"title":"Reintroduce \"decoder\" and \"encoder\" for Decode and Encode","user":{"login":"aturon","id":709807,"avatar_url":"https://avatars.githubusercontent.com/u/709807?v=3","gravatar_id":"","url":"https://api.github.com/users/aturon","html_url":"https://github.com/aturon","followers_url":"https://api.github.com/users/aturon/followers","following_url":"https://api.github.com/users/aturon/following{/other_user}","gists_url":"https://api.github.com/users/aturon/gists{/gist_id}","starred_url":"https://api.github.com/users/aturon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aturon/subscriptions","organizations_url":"https://api.github.com/users/aturon/orgs","repos_url":"https://api.github.com/users/aturon/repos","events_url":"https://api.github.com/users/aturon/events{/privacy}","received_events_url":"https://api.github.com/users/aturon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-14T21:31:37Z","updated_at":"2016-11-14T22:41:26Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tokio-rs/tokio-core/pulls/102","html_url":"https://github.com/tokio-rs/tokio-core/pull/102","diff_url":"https://github.com/tokio-rs/tokio-core/pull/102.diff","patch_url":"https://github.com/tokio-rs/tokio-core/pull/102.patch"},"body":"A previous commit refactored such that `Encode` and `Decode` are\r\nimplemented directly on the types being encoded or decoded. This was\r\nthought to be less expressive but more convenient than having a separate\r\nnotion of a (stateful) encoder or decoder.\r\n\r\nHowever, there are certain situations where the approach is just too\r\nlimiting: you're required to implemented `Decode` and `Encode` for types\r\nyou don't \"own\" and can't newtype.\r\n\r\nThis commit moves back to a setup where `Self` for `Encode` and\r\n`Decode` represents the \"encoder\" or \"decoder\"."},"comment":{"url":"https://api.github.com/repos/tokio-rs/tokio-core/issues/comments/260487189","html_url":"https://github.com/tokio-rs/tokio-core/pull/102#issuecomment-260487189","issue_url":"https://api.github.com/repos/tokio-rs/tokio-core/issues/102","id":260487189,"user":{"login":"aturon","id":709807,"avatar_url":"https://avatars.githubusercontent.com/u/709807?v=3","gravatar_id":"","url":"https://api.github.com/users/aturon","html_url":"https://github.com/aturon","followers_url":"https://api.github.com/users/aturon/followers","following_url":"https://api.github.com/users/aturon/following{/other_user}","gists_url":"https://api.github.com/users/aturon/gists{/gist_id}","starred_url":"https://api.github.com/users/aturon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aturon/subscriptions","organizations_url":"https://api.github.com/users/aturon/orgs","repos_url":"https://api.github.com/users/aturon/repos","events_url":"https://api.github.com/users/aturon/events{/privacy}","received_events_url":"https://api.github.com/users/aturon/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T22:41:26Z","updated_at":"2016-11-14T22:41:26Z","body":"Oh, to be clear, a merged `Codec` trait would still have separate types -- it'd be totally equivalent to `Encode + Decode`, but mildly easier to implement/bound by."}}
{"actor":{"display_login":"aturon"}}