#[non_exhaustive]pub struct VirtualNodeHttpConnectionPoolBuilder { /* private fields */ }Expand description
A builder for VirtualNodeHttpConnectionPool.
Implementations§
source§impl VirtualNodeHttpConnectionPoolBuilder
impl VirtualNodeHttpConnectionPoolBuilder
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<VirtualNodeHttpConnectionPool, BuildError>
pub fn build(self) -> Result<VirtualNodeHttpConnectionPool, BuildError>
Consumes the builder and constructs a VirtualNodeHttpConnectionPool.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for VirtualNodeHttpConnectionPoolBuilder
impl Clone for VirtualNodeHttpConnectionPoolBuilder
source§fn clone(&self) -> VirtualNodeHttpConnectionPoolBuilder
fn clone(&self) -> VirtualNodeHttpConnectionPoolBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for VirtualNodeHttpConnectionPoolBuilder
impl Default for VirtualNodeHttpConnectionPoolBuilder
source§fn default() -> VirtualNodeHttpConnectionPoolBuilder
fn default() -> VirtualNodeHttpConnectionPoolBuilder
source§impl PartialEq for VirtualNodeHttpConnectionPoolBuilder
impl PartialEq for VirtualNodeHttpConnectionPoolBuilder
source§fn eq(&self, other: &VirtualNodeHttpConnectionPoolBuilder) -> bool
fn eq(&self, other: &VirtualNodeHttpConnectionPoolBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VirtualNodeHttpConnectionPoolBuilder
Auto Trait Implementations§
impl Freeze for VirtualNodeHttpConnectionPoolBuilder
impl RefUnwindSafe for VirtualNodeHttpConnectionPoolBuilder
impl Send for VirtualNodeHttpConnectionPoolBuilder
impl Sync for VirtualNodeHttpConnectionPoolBuilder
impl Unpin for VirtualNodeHttpConnectionPoolBuilder
impl UnwindSafe for VirtualNodeHttpConnectionPoolBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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