Struct conjure_runtime::blocking::Client
source · pub struct Client<T = DefaultRawClient> { /* private fields */ }
Expand description
A blocking HTTP client to a remote service.
It implements the Conjure Client
trait, but also offers a “raw” request interface for use with services that don’t
provide Conjure service definitions.
Implementations§
Trait Implementations§
source§impl<T, B> Client for Client<T>
impl<T, B> Client for Client<T>
§type BodyWriter = BodyWriter
type BodyWriter = BodyWriter
The client’s binary request write type.
§type ResponseBody = ResponseBody<B>
type ResponseBody = ResponseBody<B>
The client’s binary response body type.
source§fn send(
&self,
req: Request<RequestBody<'_, Self::BodyWriter>>
) -> Result<Response<Self::ResponseBody>, Error>
fn send( &self, req: Request<RequestBody<'_, Self::BodyWriter>> ) -> Result<Response<Self::ResponseBody>, Error>
Makes an HTTP request. Read more
Auto Trait Implementations§
impl<T> Freeze for Client<T>
impl<T = DefaultRawClient> !RefUnwindSafe for Client<T>
impl<T> Send for Client<T>
impl<T> Sync for Client<T>
impl<T> Unpin for Client<T>
impl<T = DefaultRawClient> !UnwindSafe for Client<T>
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