Skip to main content

NamespacedClient

Trait NamespacedClient 

Source
pub trait NamespacedClient {
    // Required methods
    fn namespace(&self) -> String;
    fn identity(&self) -> String;

    // Provided methods
    fn data_converter(&self) -> &DataConverter { ... }
    fn client_interceptors(&self) -> &[Arc<dyn ClientInterceptor>] { ... }
}
Expand description

A client that is bound to a namespace

Required Methods§

Source

fn namespace(&self) -> String

Returns the namespace this client is bound to

Source

fn identity(&self) -> String

Returns the client identity

Provided Methods§

Source

fn data_converter(&self) -> &DataConverter

Returns the data converter for serializing/deserializing payloads. Default implementation returns a static default converter.

Source

fn client_interceptors(&self) -> &[Arc<dyn ClientInterceptor>]

Returns the interceptors used for high-level client operations.

§Warning

This provider exists so SDK-owned client handles can carry interceptor configuration through the high-level client blanket implementation. Custom client implementations should normally retain the default empty chain unless they deliberately provide the same plumbing.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§