I have a library that needs to handle several different types of errors: OS errors, errors generated in the library, Tokio errors and error codes returned from a remote service it connects to.
What's the idiomatic way to handle those in code? Are there any tutorials?
All the hand-written From instances let ? be used on functional calls that produce the underlying error. They're automagically promoted to your error type.