Searched refs:Retry (Results 1 - 4 of 4) sorted by relevance
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/config/ |
H A D | settings.rs | 84 /// Retries settings of requests. The default value is `Retry::NEVER`. 89 /// use ylong_http_client::Retry; 92 /// let never = Retry::none(); 95 /// let max = Retry::max(); 98 /// let custom = Retry::new(2).unwrap(); 101 pub struct Retry(Option<usize>); structure names 103 impl Retry { impls 112 /// use ylong_http_client::Retry; 114 /// assert!(Retry::new(1).is_ok()); 115 /// assert!(Retry [all...] |
H A D | client.rs | 16 use crate::util::{Redirect, Retry, Timeout}; 21 pub(crate) retry: Retry, 31 retry: Retry::none(),
|
H A D | mod.rs | 26 pub use settings::{Proxy, ProxyBuilder, Redirect, Retry, SpeedLimit, Timeout};
|
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ |
H A D | client.rs | 40 use crate::{ErrorKind, Retry}; 407 /// The Retry is the number of times the client will retry the request if 414 /// use ylong_http_client::Retry; 416 /// let builder = ClientBuilder::new().retry(Retry::max()); 418 pub fn retry(mut self, retry: Retry) -> Self { in retry() 960 use crate::{build_client_request, start_tcp_server, Retry}; 1249 let retry_times = Retry::new(1).unwrap(); in ut_client_request_http1_0_retry()
|
Completed in 3 milliseconds