#[repr(i32)]pub enum PortSpecification {
UndefinedPortSpecification = 0,
UseFixedPort = 190_235_748,
UseNamedPort = 349_300_671,
UseServingPort = 362_637_516,
}
Expand description
Specifies how a port is selected for health checking. Can be one of the following values: USE_FIXED_PORT: Specifies a port number explicitly using the port field in the health check. Supported by backend services for passthrough load balancers and backend services for proxy load balancers. Not supported by target pools. The health check supports all backends supported by the backend service provided the backend can be health checked. For example, GCE_VM_IP network endpoint groups, GCE_VM_IP_PORT network endpoint groups, and instance group backends. USE_NAMED_PORT: Not supported. USE_SERVING_PORT: Provides an indirect method of specifying the health check port by referring to the backend service. Only supported by backend services for proxy load balancers. Not supported by target pools. Not supported by backend services for passthrough load balancers. Supports all backends that can be health checked; for example, GCE_VM_IP_PORT network endpoint groups and instance group backends. For GCE_VM_IP_PORT network endpoint group backends, the health check uses the port number specified for each endpoint in the network endpoint group. For instance group backends, the health check uses the port number determined by looking up the backend service’s named port in the instance group’s list of named ports.
Variants§
UndefinedPortSpecification = 0
A value indicating that the enum field is not set.
UseFixedPort = 190_235_748
The port number in the health check’s port is used for health checking. Applies to network endpoint group and instance group backends.
UseNamedPort = 349_300_671
Not supported.
UseServingPort = 362_637_516
For network endpoint group backends, the health check uses the port number specified on each endpoint in the network endpoint group. For instance group backends, the health check uses the port number specified for the backend service’s named port defined in the instance group’s named ports.
Implementations§
source§impl PortSpecification
impl PortSpecification
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 PortSpecification
impl Clone for PortSpecification
source§fn clone(&self) -> PortSpecification
fn clone(&self) -> PortSpecification
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PortSpecification
impl Debug for PortSpecification
source§impl Default for PortSpecification
impl Default for PortSpecification
source§fn default() -> PortSpecification
fn default() -> PortSpecification
source§impl From<PortSpecification> for i32
impl From<PortSpecification> for i32
source§fn from(value: PortSpecification) -> i32
fn from(value: PortSpecification) -> i32
source§impl Hash for PortSpecification
impl Hash for PortSpecification
source§impl Ord for PortSpecification
impl Ord for PortSpecification
source§fn cmp(&self, other: &PortSpecification) -> Ordering
fn cmp(&self, other: &PortSpecification) -> 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 PortSpecification
impl PartialEq for PortSpecification
source§fn eq(&self, other: &PortSpecification) -> bool
fn eq(&self, other: &PortSpecification) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PortSpecification
impl PartialOrd for PortSpecification
source§fn partial_cmp(&self, other: &PortSpecification) -> Option<Ordering>
fn partial_cmp(&self, other: &PortSpecification) -> 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 PortSpecification
impl TryFrom<i32> for PortSpecification
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PortSpecification, UnknownEnumValue>
fn try_from(value: i32) -> Result<PortSpecification, UnknownEnumValue>
impl Copy for PortSpecification
impl Eq for PortSpecification
impl StructuralPartialEq for PortSpecification
Auto Trait Implementations§
impl Freeze for PortSpecification
impl RefUnwindSafe for PortSpecification
impl Send for PortSpecification
impl Sync for PortSpecification
impl Unpin for PortSpecification
impl UnwindSafe for PortSpecification
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