Trait mtop_client::ClientFactory
source · pub trait ClientFactory<K, V> {
// Required method
fn make(
&self,
key: &K,
) -> impl Future<Output = Result<V, MtopError>> + Send + Sync;
}Expand description
Trait used by a client pool for creating new client instances when needed.
Implementations are expected to retain any required configuration for client instances beyond the identifier for an instance (usually a server address).
Required Methods§
Object Safety§
This trait is not object safe.