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>where
T: Service<Request<RawBody>, Response = Response<B>> + 'static + Sync + Send,
T::Error: Into<Box<dyn Error + Sync + Send>>,
T::Future: Send,
B: Body<Data = Bytes> + 'static + Send,
B::Error: Into<Box<dyn Error + Sync + Send>>,
impl<T, B> Client for Client<T>where T: Service<Request<RawBody>, Response = Response<B>> + 'static + Sync + Send, T::Error: Into<Box<dyn Error + Sync + Send>>, T::Future: Send, B: Body<Data = Bytes> + 'static + Send, B::Error: Into<Box<dyn Error + Sync + Send>>,
§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.
Auto Trait Implementations§
impl<T = DefaultRawClient> !RefUnwindSafe for Client<T>
impl<T> Send for Client<T>where T: Send + Sync,
impl<T> Sync for Client<T>where T: Send + Sync,
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