pub struct ReqwestClient(/* private fields */);Expand description
A shared reqwest client. Built once per process (the connection pool
is the Client); the port is cheap to Arc and clone-free on the
hot path.
No default timeout — the port contract leaves timeouts to the caller
(the adapters bound their own calls through the Clock port), the
same trade worker::Fetch makes.
Implementations§
Trait Implementations§
Source§impl Default for ReqwestClient
impl Default for ReqwestClient
Auto Trait Implementations§
impl !RefUnwindSafe for ReqwestClient
impl !UnwindSafe for ReqwestClient
impl Freeze for ReqwestClient
impl Send for ReqwestClient
impl Sync for ReqwestClient
impl Unpin for ReqwestClient
impl UnsafeUnpin for ReqwestClient
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