pub struct RequestConfig {
pub timeout_ms: u64,
pub max_retries: u32,
pub headers: BTreeMap<String, String>,
}Expand description
Shared network request configuration.
Fields§
§timeout_ms: u64Request timeout in milliseconds.
max_retries: u32Maximum retry count for recoverable failures.
headers: BTreeMap<String, String>User-provided request headers that override per-platform defaults.
Implementations§
Source§impl RequestConfig
impl RequestConfig
Sourcepub fn with_timeout_ms(self, timeout_ms: u64) -> Self
pub fn with_timeout_ms(self, timeout_ms: u64) -> Self
Override the request timeout.
Sourcepub fn with_max_retries(self, max_retries: u32) -> Self
pub fn with_max_retries(self, max_retries: u32) -> Self
Override the retry budget.
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
Source§impl Default for RequestConfig
impl Default for RequestConfig
Source§impl PartialEq for RequestConfig
impl PartialEq for RequestConfig
Source§impl Serialize for RequestConfig
impl Serialize for RequestConfig
impl Eq for RequestConfig
impl StructuralPartialEq 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