Enum google_api_proto::google::cloud::compute::v1::health_status::WeightError
source · #[repr(i32)]pub enum WeightError {
UndefinedWeightError = 0,
InvalidWeight = 383_698_400,
MissingWeight = 384_027_537,
UnavailableWeight = 439_464_295,
WeightNone = 502_428_831,
}
Expand description
Variants§
UndefinedWeightError = 0
A value indicating that the enum field is not set.
InvalidWeight = 383_698_400
The response to a Health Check probe had the HTTP response header field X-Load-Balancing-Endpoint-Weight, but its content was invalid (i.e., not a non-negative single-precision floating-point number in decimal string representation).
MissingWeight = 384_027_537
The response to a Health Check probe did not have the HTTP response header field X-Load-Balancing-Endpoint-Weight.
This is the value when the accompanied health status is either TIMEOUT (i.e.,the Health Check probe was not able to get a response in time) or UNKNOWN. For the latter, it should be typically because there has not been sufficient time to parse and report the weight for a new backend (which is with 0.0.0.0 ip address). However, it can be also due to an outage case for which the health status is explicitly reset to UNKNOWN.
WeightNone = 502_428_831
This is the default value when WeightReportMode is DISABLE, and is also the initial value when WeightReportMode has just updated to ENABLE or DRY_RUN and there has not been sufficient time to parse and report the backend weight.
Implementations§
source§impl WeightError
impl WeightError
source§impl WeightError
impl WeightError
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 WeightError
impl Clone for WeightError
source§fn clone(&self) -> WeightError
fn clone(&self) -> WeightError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WeightError
impl Debug for WeightError
source§impl Default for WeightError
impl Default for WeightError
source§fn default() -> WeightError
fn default() -> WeightError
source§impl From<WeightError> for i32
impl From<WeightError> for i32
source§fn from(value: WeightError) -> i32
fn from(value: WeightError) -> i32
source§impl Hash for WeightError
impl Hash for WeightError
source§impl Ord for WeightError
impl Ord for WeightError
source§fn cmp(&self, other: &WeightError) -> Ordering
fn cmp(&self, other: &WeightError) -> 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 WeightError
impl PartialEq for WeightError
source§fn eq(&self, other: &WeightError) -> bool
fn eq(&self, other: &WeightError) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WeightError
impl PartialOrd for WeightError
source§fn partial_cmp(&self, other: &WeightError) -> Option<Ordering>
fn partial_cmp(&self, other: &WeightError) -> 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 WeightError
impl TryFrom<i32> for WeightError
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<WeightError, UnknownEnumValue>
fn try_from(value: i32) -> Result<WeightError, UnknownEnumValue>
impl Copy for WeightError
impl Eq for WeightError
impl StructuralPartialEq for WeightError
Auto Trait Implementations§
impl Freeze for WeightError
impl RefUnwindSafe for WeightError
impl Send for WeightError
impl Sync for WeightError
impl Unpin for WeightError
impl UnwindSafe for WeightError
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