pub trait Client<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,
        Self: 'async_trait
; fn get_name(&self) -> String; fn get_address(&self) -> String; fn get_inner(&self) -> &Arc<Mutex<Option<T>>>; fn new_client(
        server_host: &str,
        server_port: u16,
        name: &str
    ) -> GrpcClient<T> { ... } }
Expand description

Generic gRPC Client trait to provide wrapper for GrpcClient struct creation

Required Methods§

Invalidates the client if set

Get name string for client

Get connection string for client

Get GrpcClient inner value

Provided Methods§

Create new GrpcClient

Implementors§