Closed smorokin closed 3 years ago
I should be able to implement the trait but let me investigate
A quick look at Error suggests implementing source() might be tricky but I'll take a look in more detail tomorrow
I've implemented Error on StatusCode and left the default implementation of source() that returns None.
Great. Thank you very much for your time and the fast implementation. Returning None
in source
should be the richt choice as far as I understand it.
Sorry to bother you again @locka99, but where can I get the new version with Error
?
Hi you'd have to git clone the master branch to get it.
I have tried that, but it is not included in master.
You're right, sorry I forgot to push it.
Disclaimer: I'm really new to rust and wanted to try something out with this crate. So please feel free to close this issue, if it is a bad idea / unidiomatic, etc.
I followed the examples to set up a client and got some crashes on the unwraps. To investigate I tried to replace them with
?
-operators, but sadly a lot of the methods returnResult<T, StatusCode>
and the traitError
is not implemented forStatusCode
.As far as I understand I can't implement a trait for something from another crate.
Would it be possible to provide an implementation for
Error
from your side? I think it could just call it'sname
anddescription
functions.