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§
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.