#[non_exhaustive]pub struct VirtualGatewayHttpConnectionPoolBuilder { /* private fields */ }
Expand description
A builder for VirtualGatewayHttpConnectionPool
.
Implementations§
source§impl VirtualGatewayHttpConnectionPoolBuilder
impl VirtualGatewayHttpConnectionPoolBuilder
sourcepub fn max_connections(self, input: i32) -> Self
pub fn max_connections(self, input: i32) -> Self
Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster.
This field is required.sourcepub fn set_max_connections(self, input: Option<i32>) -> Self
pub fn set_max_connections(self, input: Option<i32>) -> Self
Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster.
sourcepub fn get_max_connections(&self) -> &Option<i32>
pub fn get_max_connections(&self) -> &Option<i32>
Maximum number of outbound TCP connections Envoy can establish concurrently with all hosts in upstream cluster.
sourcepub fn max_pending_requests(self, input: i32) -> Self
pub fn max_pending_requests(self, input: i32) -> Self
Number of overflowing requests after max_connections
Envoy will queue to upstream cluster.
sourcepub fn set_max_pending_requests(self, input: Option<i32>) -> Self
pub fn set_max_pending_requests(self, input: Option<i32>) -> Self
Number of overflowing requests after max_connections
Envoy will queue to upstream cluster.
sourcepub fn get_max_pending_requests(&self) -> &Option<i32>
pub fn get_max_pending_requests(&self) -> &Option<i32>
Number of overflowing requests after max_connections
Envoy will queue to upstream cluster.
sourcepub fn build(self) -> Result<VirtualGatewayHttpConnectionPool, BuildError>
pub fn build(self) -> Result<VirtualGatewayHttpConnectionPool, BuildError>
Consumes the builder and constructs a VirtualGatewayHttpConnectionPool
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for VirtualGatewayHttpConnectionPoolBuilder
impl Clone for VirtualGatewayHttpConnectionPoolBuilder
source§fn clone(&self) -> VirtualGatewayHttpConnectionPoolBuilder
fn clone(&self) -> VirtualGatewayHttpConnectionPoolBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for VirtualGatewayHttpConnectionPoolBuilder
impl Default for VirtualGatewayHttpConnectionPoolBuilder
source§fn default() -> VirtualGatewayHttpConnectionPoolBuilder
fn default() -> VirtualGatewayHttpConnectionPoolBuilder
source§impl PartialEq for VirtualGatewayHttpConnectionPoolBuilder
impl PartialEq for VirtualGatewayHttpConnectionPoolBuilder
source§fn eq(&self, other: &VirtualGatewayHttpConnectionPoolBuilder) -> bool
fn eq(&self, other: &VirtualGatewayHttpConnectionPoolBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VirtualGatewayHttpConnectionPoolBuilder
Auto Trait Implementations§
impl Freeze for VirtualGatewayHttpConnectionPoolBuilder
impl RefUnwindSafe for VirtualGatewayHttpConnectionPoolBuilder
impl Send for VirtualGatewayHttpConnectionPoolBuilder
impl Sync for VirtualGatewayHttpConnectionPoolBuilder
impl Unpin for VirtualGatewayHttpConnectionPoolBuilder
impl UnwindSafe for VirtualGatewayHttpConnectionPoolBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more