to_retry_error

Function to_retry_error 

Source
pub fn to_retry_error<T, E: Debug + Send + Sync>(
    err: SendRequestError<E>,
    is_critical_t: impl Fn(&SendRequestError<E>) -> bool,
) -> RetryResponse<T, SendRequestError<E>>