Struct svc_telemetry_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.
§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
GrpcClient
source§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