Why does e.kind() work only for std::io::Error and for other types of errors, such as hyper, is either private or unavailable? This is very inconvenient when trying to construct any kind of general error handling.
The book suckered me into using e.kind() by singing its praises and showing examples with std::io::Error and then I find out it does not work with anything else.
I would like to be able to access e.kind() for any error, and dyn std::error::Error