pub struct ClientBuilder { /* private fields */ }Expand description
Builder implementation to construct any Runtime API clients.
Implementations§
Source§impl ClientBuilder
impl ClientBuilder
Sourcepub fn with_connector(self, connector: HttpConnector) -> ClientBuilder
pub fn with_connector(self, connector: HttpConnector) -> ClientBuilder
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.
Sourcepub fn with_pool_size(self, pool_size: usize) -> Self
pub fn with_pool_size(self, pool_size: usize) -> Self
Provide a pool size hint for the underlying Hyper client.
When using concurrent polling, this should be at least the maximum
concurrency (e.g., AWS_LAMBDA_MAX_CONCURRENCY) to avoid connection
starvation.
Sourcepub fn build(self) -> Result<Client, Error>
pub fn build(self) -> Result<Client, Error>
Create the new client to interact with the Runtime API.
Superseded by PooledClient::builder, which produces a
PooledClient that supports SnapStart connection-pool reset. Prefer
PooledClient::builder().build() for new code; this method is expected to
be removed in the next major version (2.0.0).
Auto Trait Implementations§
impl !Freeze for ClientBuilder
impl RefUnwindSafe for ClientBuilder
impl Send for ClientBuilder
impl Sync for ClientBuilder
impl Unpin for ClientBuilder
impl UnsafeUnpin for ClientBuilder
impl UnwindSafe for ClientBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more