Skip to main content

retry_hint_from_io_error

Function retry_hint_from_io_error 

Source
pub fn retry_hint_from_io_error(error: &Error) -> RetryHint
Expand description

Converts a std::io::Error into a conservative RetryHint.

This helper classifies known transient I/O conditions as retryable and treats request, permission, filesystem-capacity, and data-shape errors as non-retryable. std::io::ErrorKind is non-exhaustive, so future or unclassified kinds are considered non-retryable until reviewed explicitly.