Struct svc_pricing_client_grpc::GrpcClient 
pub struct GrpcClient<T> { /* private fields */ }Expand description
Wrapper struct for our gRPC clients
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,
§impl<T> Client<T> for GrpcClient<T>where
    T: Send + Clone,
 
impl<T> Client<T> for GrpcClient<T>where
    T: Send + Clone,
§fn invalidate<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where
    'life0: 'async_trait,
    GrpcClient<T>: 'async_trait,
 
fn invalidate<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where
    'life0: 'async_trait,
    GrpcClient<T>: 'async_trait,
Invalidates the client if set
§fn get_address(&self) -> String
 
fn get_address(&self) -> String
Get connection string for client
§fn new_client(server_host: &str, server_port: u16, name: &str) -> GrpcClient<T>
 
fn new_client(server_host: &str, server_port: u16, name: &str) -> GrpcClient<T>
Create new 
GrpcClientsource§impl ClientConnect<RpcServiceClient<Channel>> for GrpcClient<RpcServiceClient<Channel>>
 
impl ClientConnect<RpcServiceClient<Channel>> for GrpcClient<RpcServiceClient<Channel>>
§impl<T> Clone for GrpcClient<T>where
    T: Clone,
 
impl<T> Clone for GrpcClient<T>where
    T: Clone,
§fn clone(&self) -> GrpcClient<T>
 
fn clone(&self) -> GrpcClient<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 GrpcClient<T>
impl<T> Send for GrpcClient<T>where
    T: Send,
impl<T> Sync for GrpcClient<T>where
    T: Send,
impl<T> Unpin for GrpcClient<T>
impl<T> !UnwindSafe for GrpcClient<T>
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