Enum google_api_proto::google::cloud::networkmanagement::v1beta1::load_balancer_backend::HealthCheckFirewallState
source · #[repr(i32)]pub enum HealthCheckFirewallState {
Unspecified = 0,
Configured = 1,
Misconfigured = 2,
}
Expand description
State of a health check firewall configuration:
Variants§
Unspecified = 0
State is unspecified. Default state if not populated.
Configured = 1
There are configured firewall rules to allow health check probes to the backend.
Misconfigured = 2
There are firewall rules configured to allow partial health check ranges or block all health check ranges. If a health check probe is sent from denied IP ranges, the health check to the backend will fail. Then, the backend will be marked unhealthy and will not receive traffic sent to the load balancer.
Implementations§
source§impl HealthCheckFirewallState
impl HealthCheckFirewallState
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of HealthCheckFirewallState
.
sourcepub fn from_i32(value: i32) -> Option<HealthCheckFirewallState>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<HealthCheckFirewallState>
Converts an i32
to a HealthCheckFirewallState
, or None
if value
is not a valid variant.
source§impl HealthCheckFirewallState
impl HealthCheckFirewallState
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for HealthCheckFirewallState
impl Clone for HealthCheckFirewallState
source§fn clone(&self) -> HealthCheckFirewallState
fn clone(&self) -> HealthCheckFirewallState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HealthCheckFirewallState
impl Debug for HealthCheckFirewallState
source§impl Default for HealthCheckFirewallState
impl Default for HealthCheckFirewallState
source§fn default() -> HealthCheckFirewallState
fn default() -> HealthCheckFirewallState
source§impl From<HealthCheckFirewallState> for i32
impl From<HealthCheckFirewallState> for i32
source§fn from(value: HealthCheckFirewallState) -> i32
fn from(value: HealthCheckFirewallState) -> i32
source§impl Hash for HealthCheckFirewallState
impl Hash for HealthCheckFirewallState
source§impl Ord for HealthCheckFirewallState
impl Ord for HealthCheckFirewallState
source§fn cmp(&self, other: &HealthCheckFirewallState) -> Ordering
fn cmp(&self, other: &HealthCheckFirewallState) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for HealthCheckFirewallState
impl PartialEq for HealthCheckFirewallState
source§fn eq(&self, other: &HealthCheckFirewallState) -> bool
fn eq(&self, other: &HealthCheckFirewallState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HealthCheckFirewallState
impl PartialOrd for HealthCheckFirewallState
source§fn partial_cmp(&self, other: &HealthCheckFirewallState) -> Option<Ordering>
fn partial_cmp(&self, other: &HealthCheckFirewallState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for HealthCheckFirewallState
impl TryFrom<i32> for HealthCheckFirewallState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<HealthCheckFirewallState, UnknownEnumValue>
fn try_from(value: i32) -> Result<HealthCheckFirewallState, UnknownEnumValue>
impl Copy for HealthCheckFirewallState
impl Eq for HealthCheckFirewallState
impl StructuralPartialEq for HealthCheckFirewallState
Auto Trait Implementations§
impl Freeze for HealthCheckFirewallState
impl RefUnwindSafe for HealthCheckFirewallState
impl Send for HealthCheckFirewallState
impl Sync for HealthCheckFirewallState
impl Unpin for HealthCheckFirewallState
impl UnwindSafe for HealthCheckFirewallState
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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