pub struct CircuitBreakers {
pub max_connections: Option<i32>,
pub max_pending_requests: Option<i32>,
pub max_requests: Option<i32>,
pub max_requests_per_connection: Option<i32>,
pub max_retries: Option<i32>,
}
Expand description
Settings controlling the volume of requests, connections and retries to this backend service.
This type is not used in any activity, and only used as part of another schema.
Fields§
§max_connections: Option<i32>
The maximum number of connections to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
max_pending_requests: Option<i32>
The maximum number of pending requests allowed to the backend service. If not specified, there is no limit. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
max_requests: Option<i32>
The maximum number of parallel requests that allowed to the backend service. If not specified, there is no limit.
max_requests_per_connection: Option<i32>
Maximum requests for a single connection to the backend service. This parameter is respected by both the HTTP/1.1 and HTTP/2 implementations. If not specified, there is no limit. Setting this parameter to 1 will effectively disable keep alive. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
max_retries: Option<i32>
The maximum number of parallel retries allowed to the backend cluster. If not specified, the default is 1. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
Trait Implementations§
Source§impl Clone for CircuitBreakers
impl Clone for CircuitBreakers
Source§fn clone(&self) -> CircuitBreakers
fn clone(&self) -> CircuitBreakers
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CircuitBreakers
impl Debug for CircuitBreakers
Source§impl Default for CircuitBreakers
impl Default for CircuitBreakers
Source§fn default() -> CircuitBreakers
fn default() -> CircuitBreakers
Source§impl<'de> Deserialize<'de> for CircuitBreakers
impl<'de> Deserialize<'de> for CircuitBreakers
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for CircuitBreakers
impl Serialize for CircuitBreakers
impl Part for CircuitBreakers
Auto Trait Implementations§
impl Freeze for CircuitBreakers
impl RefUnwindSafe for CircuitBreakers
impl Send for CircuitBreakers
impl Sync for CircuitBreakers
impl Unpin for CircuitBreakers
impl UnwindSafe for CircuitBreakers
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§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