Trait ClientStubExt

Source
pub trait ClientStubExt: Sized {
    // Required methods
    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>;
}
Expand description

Utilities to work with generated code clients.

Required Methods§

Source

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

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

Source

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.

Source

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

Create a client connected to specified unix socket.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§