Skip to content
This repository has been archived by the owner on Sep 13, 2018. It is now read-only.

error_chain + tokio_proto? #166

Open
mark-i-m opened this issue May 20, 2017 · 2 comments
Open

error_chain + tokio_proto? #166

mark-i-m opened this issue May 20, 2017 · 2 comments

Comments

@mark-i-m
Copy link

Hey, I was wondering if it is possible to use error_chain with tokio_proto... It looks like std::io::Error is hard-coded in a lot of places.

For example, I was working through the tutorial, and I had this code (with the compile error mentioned at the bottom of that gist).

The problem is that even though my Error type is From<std::io::Error>, ServerProto requires std::io::Error itself, so their is a type mismatch. Interestingly, the streaming ServerProto does appear to have a From<std::io::Error> bound...

@lucab
Copy link

lucab commented Jul 28, 2017

Bump, I think I'm hitting the same problem in ClientProto.

@mark-i-m
Copy link
Author

I never ended up finding a solution... and then I got busy and forgot...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants