Trait grpc::ClientStubExt
source · pub trait ClientStubExt: Sized {
fn new_plain(host: &str, port: u16, conf: ClientConf) -> grpc_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>;
}
Required Methods
sourcefn new_plain(host: &str, port: u16, conf: ClientConf) -> grpc_Result<Self>
fn new_plain(host: &str, port: u16, conf: ClientConf) -> grpc_Result<Self>
Create a plain (non-encrypted) client connected to specified host and port
sourcefn new_tls<C: TlsConnector>(
host: &str,
port: u16,
conf: ClientConf
) -> grpc_Result<Self>
fn new_tls<C: TlsConnector>(
host: &str,
port: u16,
conf: ClientConf
) -> grpc_Result<Self>
Create a client connected to specified host and port using TLS.
sourcefn new_plain_unix(addr: &str, conf: ClientConf) -> grpc_Result<Self>
fn new_plain_unix(addr: &str, conf: ClientConf) -> grpc_Result<Self>
Create a client connected to specified unix socket.