pub fn error_chain(err: &(dyn Error + 'static)) -> StringExpand description
Render an error together with its whole source() chain, outermost
first: "error sending request for url (…): operation timed out".
Transport errors hide their cause in the chain. reqwest::Error’s own
Display prints only the outermost layer — “error sending request for
url (…)” — which reads the same for a timeout, a refused connection, a
DNS failure and a TLS handshake error. The detail that says which one it
was is in source(). Every provider crate wraps send failures through
this, so a hung endpoint is diagnosable from the error text alone.
A layer whose text the previous one already includes is skipped, so a wrapper that formats its source into its own message is not printed twice.