pub trait GrpcClientBuilder {
type Service;
// Required method
fn with_interceptor(
channel: Channel,
config: &ClientConfig,
) -> Self::Service;
}Expand description
Trait for building gRPC clients from a common Builder configuration.
This trait provides a standardized way to create different gRPC clients with consistent configuration options like TLS, OTEL interceptors, and connection types.
Required Associated Types§
Required Methods§
fn with_interceptor(channel: Channel, config: &ClientConfig) -> Self::Service
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.