30
The Missing Piece in Rust Error Handling
(mcmah309.github.io)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
This is exactly what it's for.
#[non_exhaustive]forces you to add a default branch when matching on the error. It's already used a lot, so without a way to do that, it becomes less useful in library code.