pub struct Native { /* private fields */ }Expand description
One HTTP client, cheap to clone: clones share their connections.
Implementations§
Source§impl Native
impl Native
Sourcepub fn with_timeout(timeout: Duration) -> Self
pub fn with_timeout(timeout: Duration) -> Self
A client whose every request gives up after timeout. A request that
times out comes back as TransportError::Unreachable: an action may
still have landed.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Native
impl !UnwindSafe for Native
impl Freeze for Native
impl Send for Native
impl Sync for Native
impl Unpin for Native
impl UnsafeUnpin for Native
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