pub struct ClientContext(/* private fields */);Available on crate feature
client only.Expand description
RPC context of http client
Implementations§
Source§impl ClientContext
impl ClientContext
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new ClientContext
Trait Implementations§
Source§impl Apply<ClientContext> for CallOpt
impl Apply<ClientContext> for CallOpt
Source§impl Apply<ClientContext> for Target
impl Apply<ClientContext> for Target
Source§impl Context for ClientContext
impl Context for ClientContext
type Config = Config
fn rpc_info(&self) -> &RpcInfo<Self::Config>
fn rpc_info_mut(&mut self) -> &mut RpcInfo<Self::Config>
fn extensions_mut(&mut self) -> &mut Extensions
fn extensions(&self) -> &Extensions
Source§impl Debug for ClientContext
impl Debug for ClientContext
Source§impl Default for ClientContext
impl Default for ClientContext
Source§impl Deref for ClientContext
impl Deref for ClientContext
Source§impl DerefMut for ClientContext
impl DerefMut for ClientContext
Source§impl<ReqBody, RespBody> OneShotService<ClientContext, Request<ReqBody>> for Client<ReqBody, RespBody>where
ReqBody: Send,
impl<ReqBody, RespBody> OneShotService<ClientContext, Request<ReqBody>> for Client<ReqBody, RespBody>where
ReqBody: Send,
Source§type Error = ClientError
type Error = ClientError
Errors produced by the service.
Source§impl<B> Service<ClientContext, Request<B>> for ClientTransport<B>
impl<B> Service<ClientContext, Request<B>> for ClientTransport<B>
Source§type Error = ClientError
type Error = ClientError
Errors produced by the service.
Source§impl<B, S> Service<ClientContext, Request<B>> for HostService<S>
impl<B, S> Service<ClientContext, Request<B>> for HostService<S>
Source§impl<B, S> Service<ClientContext, Request<B>> for HttpProxyService<S>
Available on crate feature http1 only.
impl<B, S> Service<ClientContext, Request<B>> for HttpProxyService<S>
Available on crate feature
http1 only.Source§impl<LB, D, S, B> Service<ClientContext, Request<B>> for LoadBalanceService<LB, D, S>where
LB: LoadBalance<D>,
D: Discover,
S: Service<ClientContext, Request<B>, Error = ClientError> + Send + Sync,
B: Send,
impl<LB, D, S, B> Service<ClientContext, Request<B>> for LoadBalanceService<LB, D, S>where
LB: LoadBalance<D>,
D: Discover,
S: Service<ClientContext, Request<B>, Error = ClientError> + Send + Sync,
B: Send,
Source§impl<ReqBody, RespBody> Service<ClientContext, Request<ReqBody>> for Client<ReqBody, RespBody>where
ReqBody: Send,
impl<ReqBody, RespBody> Service<ClientContext, Request<ReqBody>> for Client<ReqBody, RespBody>where
ReqBody: Send,
Source§type Error = ClientError
type Error = ClientError
Errors produced by the service.
Source§impl<S, ReqBody, RespBody> Service<ClientContext, Request<ReqBody>> for CookieService<S>where
S: Service<ClientContext, Request<ReqBody>, Response = Response<RespBody>, Error = ClientError> + Send + Sync + 'static,
ReqBody: Send,
RespBody: Send,
Available on crate feature cookie only.
impl<S, ReqBody, RespBody> Service<ClientContext, Request<ReqBody>> for CookieService<S>where
S: Service<ClientContext, Request<ReqBody>, Response = Response<RespBody>, Error = ClientError> + Send + Sync + 'static,
ReqBody: Send,
RespBody: Send,
Available on crate feature
cookie only.Auto Trait Implementations§
impl !Freeze for ClientContext
impl !RefUnwindSafe for ClientContext
impl Send for ClientContext
impl Sync for ClientContext
impl Unpin for ClientContext
impl !UnwindSafe for ClientContext
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