pub struct HttpConfig {
pub timeout_ms: u64,
pub connect_timeout_ms: u64,
pub max_retries: u32,
pub retry_interval_ms: u64,
pub stream_timeout_ms: u64,
}Expand description
HTTP 配置
Fields§
§timeout_ms: u64请求超时(毫秒)
connect_timeout_ms: u64连接超时(毫秒)
max_retries: u32最大重试次数
retry_interval_ms: u64重试间隔(毫秒)
stream_timeout_ms: u64流式读取超时(毫秒)
Trait Implementations§
Source§impl Clone for HttpConfig
impl Clone for HttpConfig
Source§fn clone(&self) -> HttpConfig
fn clone(&self) -> HttpConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HttpConfig
impl Debug for HttpConfig
Auto Trait Implementations§
impl Freeze for HttpConfig
impl RefUnwindSafe for HttpConfig
impl Send for HttpConfig
impl Sync for HttpConfig
impl Unpin for HttpConfig
impl UnsafeUnpin for HttpConfig
impl UnwindSafe for HttpConfig
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