pub struct NativeRequestOptions {
pub timeout: Option<Timeout>,
pub transport_hints: TransportHints,
}Expand description
Transport-only options for Client::execute_http_body.
The native body API intentionally does not apply redirects, retries, cookies, authentication, decompression, or decoded-body limits. Those policies can change or replay wire bytes and remain part of the high-level request API instead.
Fields§
§timeout: Option<Timeout>Optional timeout override. It is merged with the client timeout using the same phase-aware rules as ordinary requests.
transport_hints: TransportHintsTyped transport hints such as a resolved destination or SNI name.
Implementations§
Source§impl NativeRequestOptions
impl NativeRequestOptions
Sourcepub fn transport_hints(self, transport_hints: TransportHints) -> Self
pub fn transport_hints(self, transport_hints: TransportHints) -> Self
Set typed transport hints for this request.
Trait Implementations§
Source§impl Clone for NativeRequestOptions
impl Clone for NativeRequestOptions
Source§impl Debug for NativeRequestOptions
impl Debug for NativeRequestOptions
Auto Trait Implementations§
impl !Freeze for NativeRequestOptions
impl !RefUnwindSafe for NativeRequestOptions
impl !UnwindSafe for NativeRequestOptions
impl Send for NativeRequestOptions
impl Sync for NativeRequestOptions
impl Unpin for NativeRequestOptions
impl UnsafeUnpin for NativeRequestOptions
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