pub struct Client { /* private fields */ }Implementations§
source§impl Client
impl Client
pub fn new(pool_size: usize, timeout: Duration) -> Self
pub fn max_redirects(self, max_redirects: usize) -> Self
pub fn follow_redirects(self, follow: bool) -> Self
pub async fn get(&self, url: &str) -> EResult<Response<Body>>
pub async fn get_response(&self, url: &str) -> EResult<Response>
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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