pub struct RpcServiceClient<T> { /* private fields */ }Implementations§
source§impl<T> RpcServiceClient<T>where
    T: GrpcService<BoxBody>,
    T::Error: Into<StdError>,
    T::ResponseBody: Body<Data = Bytes> + Send + 'static,
    <T::ResponseBody as Body>::Error: Into<StdError> + Send,
 
impl<T> RpcServiceClient<T>where
    T: GrpcService<BoxBody>,
    T::Error: Into<StdError>,
    T::ResponseBody: Body<Data = Bytes> + Send + 'static,
    <T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
    inner: T,
    interceptor: F
) -> RpcServiceClient<InterceptedService<T, F>>where
    F: Interceptor,
    T::ResponseBody: Default,
    T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
    <T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
 
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
 
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
pub async fn is_ready(
    &mut self,
    request: impl IntoRequest<ReadyRequest>
) -> Result<Response<ReadyResponse>, Status>
pub async fn get_pricing(
    &mut self,
    request: impl IntoRequest<PricingRequests>
) -> Result<Response<PricingResponse>, Status>
Trait Implementations§
source§impl Client<RpcServiceClient<Channel>> for GrpcClient<RpcServiceClient<Channel>>
 
impl Client<RpcServiceClient<Channel>> for GrpcClient<RpcServiceClient<Channel>>
§type ReadyRequest = ReadyRequest
 
type ReadyRequest = ReadyRequest
The type expected for ReadyRequest structs.
§type ReadyResponse = ReadyResponse
 
type ReadyResponse = ReadyResponse
The type expected for ReadyResponse structs.
§type PricingRequests = PricingRequests
 
type PricingRequests = PricingRequests
The type expected for PricingRequests structs.
§type PricingResponse = PricingResponse
 
type PricingResponse = PricingResponse
The type expected for PricingResponse structs.
source§fn is_ready<'life0, 'async_trait>(
    &'life0 self,
    request: Self::ReadyRequest
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ReadyResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn is_ready<'life0, 'async_trait>(
    &'life0 self,
    request: Self::ReadyRequest
) -> Pin<Box<dyn Future<Output = Result<Response<Self::ReadyResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
source§fn get_pricing<'life0, 'async_trait>(
    &'life0 self,
    request: Self::PricingRequests
) -> Pin<Box<dyn Future<Output = Result<Response<Self::PricingResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn get_pricing<'life0, 'async_trait>(
    &'life0 self,
    request: Self::PricingRequests
) -> Pin<Box<dyn Future<Output = Result<Response<Self::PricingResponse>, Status>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
source§impl ClientConnect<RpcServiceClient<Channel>> for GrpcClient<RpcServiceClient<Channel>>
 
impl ClientConnect<RpcServiceClient<Channel>> for GrpcClient<RpcServiceClient<Channel>>
source§impl<T: Clone> Clone for RpcServiceClient<T>
 
impl<T: Clone> Clone for RpcServiceClient<T>
source§fn clone(&self) -> RpcServiceClient<T>
 
fn clone(&self) -> RpcServiceClient<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreAuto Trait Implementations§
impl<T> RefUnwindSafe for RpcServiceClient<T>where
    T: RefUnwindSafe,
impl<T> Send for RpcServiceClient<T>where
    T: Send,
impl<T> Sync for RpcServiceClient<T>where
    T: Sync,
impl<T> Unpin for RpcServiceClient<T>where
    T: Unpin,
impl<T> UnwindSafe for RpcServiceClient<T>where
    T: UnwindSafe,
Blanket Implementations§
source§impl<T> Instrument for T
 
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
 
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
 
fn into_request(self) -> Request<T>
Wrap the input message 
T in a tonic::Request