[][src]Trait rpcx::RpcxClient

pub trait RpcxClient {
    fn call<T>(
        &mut self,
        service_path: &String,
        service_method: &String,
        is_oneway: bool,
        metadata: &HashMap<String, String, RandomState>,
        args: &dyn RpcxParam
    ) -> Option<Result<T, Error>>
    where
        T: RpcxParam + Default
;
fn acall<T>(
        &mut self,
        service_path: &String,
        service_method: &String,
        metadata: &HashMap<String, String, RandomState>,
        args: &dyn RpcxParam
    ) -> Box<dyn Future<Item = Result<T, Error>, Error = Error> + 'static + Sync + Send>
    where
        T: RpcxParam + Default + Sync + Send + 'static
; }

Required methods

fn call<T>(
    &mut self,
    service_path: &String,
    service_method: &String,
    is_oneway: bool,
    metadata: &HashMap<String, String, RandomState>,
    args: &dyn RpcxParam
) -> Option<Result<T, Error>> where
    T: RpcxParam + Default

fn acall<T>(
    &mut self,
    service_path: &String,
    service_method: &String,
    metadata: &HashMap<String, String, RandomState>,
    args: &dyn RpcxParam
) -> Box<dyn Future<Item = Result<T, Error>, Error = Error> + 'static + Sync + Send> where
    T: RpcxParam + Default + Sync + Send + 'static, 

Loading content...

Implementors

impl RpcxClient for Client[src]

impl<S> RpcxClient for XClient<S> where
    S: ClientSelector
[src]

Loading content...