Function is_timeout_error
pub fn is_timeout_error(error: &(dyn Error + 'static)) -> boolExpand description
Whether an error or its source chain represents a known timeout.
Recognizes TimeoutError, std::io::ErrorKind::TimedOut with std, and
tokio::time::error::Elapsed with std. Custom errors
can expose TimeoutError as a source; messages are never inspected.
Uses crate::error_chain, including wrapped I/O errors, with its 64-error
bound for cyclic or excessively deep sources. For crate::ErrorList only
the primary failure is followed: one secondary timeout does not classify a
collection of unrelated failures as a timeout.