pub trait DockerMutationClientProvider: Send + Sync {
// Required method
fn mutation_client<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DockerMutationClient>, InfraError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Factory for host- and revision-bound Docker mutation clients.
Required Methods§
Sourcefn mutation_client<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DockerMutationClient>, InfraError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn mutation_client<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DockerMutationClient>, InfraError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Returns a mutation-capable client bound to the exact host revision.