Skip to main content

NamespacedClient

Trait NamespacedClient 

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

    // Provided method
    fn data_converter(&self) -> &DataConverter { ... }
}
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.

Implementors§