[][src]Trait rpcx_client::RpcxClient

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

Required methods

fn call<T>(
    &mut self,
    service_method: &str,
    is_oneway: bool,
    metadata: &Metadata,
    args: &dyn RpcxParam
) -> Option<Result<T>> where
    T: RpcxParam + Default

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

Loading content...

Implementors

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

Loading content...