Trait grpc::ClientStubExt [−][src]
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]
host: &str,
port: u16,
conf: ClientConf
) -> grpc_Result<Self>
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.
Implementors
impl<C: ClientStub> ClientStubExt for C
[src]
fn new_plain(host: &str, port: u16, conf: ClientConf) -> grpc_Result<Self>
[src]
fn new_tls<T: TlsConnector>(
host: &str,
port: u16,
conf: ClientConf
) -> grpc_Result<Self>
[src]
host: &str,
port: u16,
conf: ClientConf
) -> grpc_Result<Self>