Trait grpc::ClientStubExt[][src]

pub trait ClientStubExt: Sized {
    fn new_plain(host: &str, port: u16, conf: ClientConf) -> Result<Self>;
fn new_tls<C: TlsConnector>(
        host: &str,
        port: u16,
        conf: ClientConf
    ) -> grpc_Result<Self>;
fn new_plain_unix(addr: &str, conf: ClientConf) -> grpc_Result<Self>; }

Utilities to work with generated code clients.

Required methods

fn new_plain(host: &str, port: u16, conf: ClientConf) -> Result<Self>[src]

Create a plain (non-encrypted) client connected to specified host and port

fn new_tls<C: TlsConnector>(
    host: &str,
    port: u16,
    conf: ClientConf
) -> grpc_Result<Self>
[src]

Create a client connected to specified host and port using TLS.

fn new_plain_unix(addr: &str, conf: ClientConf) -> grpc_Result<Self>[src]

Create a client connected to specified unix socket.

Loading content...

Implementors

impl<C: ClientStub> ClientStubExt for C[src]

Loading content...