pub trait ClientManager:
Send
+ Sync
+ 'static {
type Client: Send + 'static;
type Error: Error + Send + Sync + 'static;
// Required methods
fn create<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Client, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn recycle<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 mut Self::Client,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Creates and validates one protocol-specific outbound client.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".