pub trait DockerClientProvider: Send + Sync {
// Required method
fn client<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Arc<dyn DockerReadClient>>> + 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 read clients.
Required Methods§
Sourcefn client<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Arc<dyn DockerReadClient>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn client<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
host: &'life1 HostRecord,
cancellation: &'life2 CancellationToken,
) -> Pin<Box<dyn Future<Output = InfraResult<Arc<dyn DockerReadClient>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Returns a client bound to the exact host revision.