pub struct WebClient { /* private fields */ }
Implementations§
Source§impl WebClient
impl WebClient
pub fn new() -> Self
pub fn blocking_body(body: Body) -> Result<Vec<u8>, Error>
pub async fn get_body(body: Body) -> Result<Vec<u8>, Error>
pub fn blocking_get(&self, url: &'static str) -> Result<Response<Body>, Error>
pub fn blocking_request( &self, request: Request<Body>, ) -> Result<Response<Body>, Error>
pub fn request(&self, request: Request<Body>) -> ResponseFuture
pub fn get(&self, url: &'static str) -> ResponseFuture
Auto Trait Implementations§
impl !Freeze for WebClient
impl !RefUnwindSafe for WebClient
impl Send for WebClient
impl Sync for WebClient
impl Unpin for WebClient
impl !UnwindSafe for WebClient
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