Enum google_api_proto::google::cloud::compute::v1::router_status_bgp_peer_status::StatusReason
source · #[repr(i32)]pub enum StatusReason {
UndefinedStatusReason = 0,
Ipv4PeerOnIpv6OnlyConnection = 435_936_662,
Ipv6PeerOnIpv4OnlyConnection = 436_304_082,
Md5AuthInternalProblem = 140_462_259,
Unspecified = 394_331_913,
}
Expand description
Indicates why particular status was returned.
Variants§
UndefinedStatusReason = 0
A value indicating that the enum field is not set.
Ipv4PeerOnIpv6OnlyConnection = 435_936_662
BGP peer disabled because it requires IPv4 but the underlying connection is IPv6-only.
Ipv6PeerOnIpv4OnlyConnection = 436_304_082
BGP peer disabled because it requires IPv6 but the underlying connection is IPv4-only.
Md5AuthInternalProblem = 140_462_259
Indicates internal problems with configuration of MD5 authentication. This particular reason can only be returned when md5AuthEnabled is true and status is DOWN.
Unspecified = 394_331_913
Implementations§
source§impl StatusReason
impl StatusReason
source§impl StatusReason
impl StatusReason
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 StatusReason
impl Clone for StatusReason
source§fn clone(&self) -> StatusReason
fn clone(&self) -> StatusReason
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StatusReason
impl Debug for StatusReason
source§impl Default for StatusReason
impl Default for StatusReason
source§fn default() -> StatusReason
fn default() -> StatusReason
Returns the “default value” for a type. Read more
source§impl From<StatusReason> for i32
impl From<StatusReason> for i32
source§fn from(value: StatusReason) -> i32
fn from(value: StatusReason) -> i32
Converts to this type from the input type.
source§impl Hash for StatusReason
impl Hash for StatusReason
source§impl Ord for StatusReason
impl Ord for StatusReason
source§fn cmp(&self, other: &StatusReason) -> Ordering
fn cmp(&self, other: &StatusReason) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for StatusReason
impl PartialEq for StatusReason
source§fn eq(&self, other: &StatusReason) -> bool
fn eq(&self, other: &StatusReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StatusReason
impl PartialOrd for StatusReason
source§fn partial_cmp(&self, other: &StatusReason) -> Option<Ordering>
fn partial_cmp(&self, other: &StatusReason) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for StatusReason
impl TryFrom<i32> for StatusReason
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<StatusReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<StatusReason, UnknownEnumValue>
Performs the conversion.
impl Copy for StatusReason
impl Eq for StatusReason
impl StructuralPartialEq for StatusReason
Auto Trait Implementations§
impl Freeze for StatusReason
impl RefUnwindSafe for StatusReason
impl Send for StatusReason
impl Sync for StatusReason
impl Unpin for StatusReason
impl UnwindSafe for StatusReason
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
Mutably borrows from an owned value. Read more
§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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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>
Wrap the input message
T
in a tonic::Request