Struct lambda_runtime_api_client::ClientBuilder
source · pub struct ClientBuilder<C: Service<Uri> = HttpConnector> { /* private fields */ }
Expand description
Builder implementation to construct any Runtime API clients.
Implementations§
source§impl<C> ClientBuilder<C>where
C: Service<Uri> + Clone + Send + Sync + Unpin + 'static,
<C as Service<Uri>>::Future: Unpin + Send,
<C as Service<Uri>>::Error: Into<Box<dyn Error + Send + Sync>>,
<C as Service<Uri>>::Response: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,
impl<C> ClientBuilder<C>where C: Service<Uri> + Clone + Send + Sync + Unpin + 'static, <C as Service<Uri>>::Future: Unpin + Send, <C as Service<Uri>>::Error: Into<Box<dyn Error + Send + Sync>>, <C as Service<Uri>>::Response: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,
sourcepub fn with_connector<C2>(self, connector: C2) -> ClientBuilder<C2>where
C2: Service<Uri> + Clone + Send + Sync + Unpin + 'static,
<C2 as Service<Uri>>::Future: Unpin + Send,
<C2 as Service<Uri>>::Error: Into<Box<dyn Error + Send + Sync>>,
<C2 as Service<Uri>>::Response: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,
pub fn with_connector<C2>(self, connector: C2) -> ClientBuilder<C2>where C2: Service<Uri> + Clone + Send + Sync + Unpin + 'static, <C2 as Service<Uri>>::Future: Unpin + Send, <C2 as Service<Uri>>::Error: Into<Box<dyn Error + Send + Sync>>, <C2 as Service<Uri>>::Response: AsyncRead + AsyncWrite + Connection + Unpin + Send + 'static,
Create a new builder with a given HTTP connector.
sourcepub fn with_endpoint(self, uri: Uri) -> Self
pub fn with_endpoint(self, uri: Uri) -> Self
Create a new builder with a given base URI. Inherits all other attributes from the existent builder.