See this reddit post where the question was "How can File::open fail?" and the information is sort of there in the docs, but I was reduced to guessing io::ErrorKind variants from the text description of errors. Similar to how Unix man pages list exactly which errno values are possible, the std::io functions should list the exact variants they might return.
See this reddit post where the question was "How can
File::openfail?" and the information is sort of there in the docs, but I was reduced to guessingio::ErrorKindvariants from the text description of errors. Similar to how Unix man pages list exactly whicherrnovalues are possible, thestd::iofunctions should list the exact variants they might return.