pub struct RequestConfig {
pub timeout_secs: u64,
pub connect_timeout_secs: u64,
pub max_retries: u32,
pub retry_delay_ms: u64,
pub user_agent: String,
}Expand description
兼容旧 API 的配置
Fields§
§timeout_secs: u64请求超时时间(秒)
connect_timeout_secs: u64连接超时时间(秒)
max_retries: u32最大重试次数
retry_delay_ms: u64重试间隔(毫秒)
user_agent: String用户代理
Trait Implementations§
Source§impl Clone for RequestConfig
impl Clone for RequestConfig
Source§fn clone(&self) -> RequestConfig
fn clone(&self) -> RequestConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestConfig
impl Debug for RequestConfig
Auto Trait Implementations§
impl Freeze for RequestConfig
impl RefUnwindSafe for RequestConfig
impl Send for RequestConfig
impl Sync for RequestConfig
impl Unpin for RequestConfig
impl UnsafeUnpin for RequestConfig
impl UnwindSafe for RequestConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more