Struct google_api_proto::google::cloud::compute::v1::CircuitBreakers
source · 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.
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.
Implementations§
source§impl CircuitBreakers
impl CircuitBreakers
sourcepub fn max_requests(&self) -> i32
pub fn max_requests(&self) -> i32
Returns the value of max_requests
, or the default value if max_requests
is unset.
sourcepub fn max_retries(&self) -> i32
pub fn max_retries(&self) -> i32
Returns the value of max_retries
, or the default value if max_retries
is unset.
sourcepub fn max_connections(&self) -> i32
pub fn max_connections(&self) -> i32
Returns the value of max_connections
, or the default value if max_connections
is unset.
sourcepub fn max_requests_per_connection(&self) -> i32
pub fn max_requests_per_connection(&self) -> i32
Returns the value of max_requests_per_connection
, or the default value if max_requests_per_connection
is unset.
sourcepub fn max_pending_requests(&self) -> i32
pub fn max_pending_requests(&self) -> i32
Returns the value of max_pending_requests
, or the default value if max_pending_requests
is unset.
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§impl Message for CircuitBreakers
impl Message for CircuitBreakers
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for CircuitBreakers
impl PartialEq for CircuitBreakers
source§fn eq(&self, other: &CircuitBreakers) -> bool
fn eq(&self, other: &CircuitBreakers) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for CircuitBreakers
impl StructuralPartialEq 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request