Enum google_api_proto::google::cloud::compute::v1::forwarding_rule::PscConnectionStatus
source · #[repr(i32)]pub enum PscConnectionStatus {
UndefinedPscConnectionStatus = 0,
Accepted = 246_714_279,
Closed = 380_163_436,
NeedsAttention = 344_491_452,
Pending = 35_394_935,
Rejected = 174_130_302,
StatusUnspecified = 42_133_066,
}
Expand description
Variants§
UndefinedPscConnectionStatus = 0
A value indicating that the enum field is not set.
Accepted = 246_714_279
The connection has been accepted by the producer.
Closed = 380_163_436
The connection has been closed by the producer and will not serve traffic going forward.
NeedsAttention = 344_491_452
The connection has been accepted by the producer, but the producer needs to take further action before the forwarding rule can serve traffic.
Pending = 35_394_935
The connection is pending acceptance by the producer.
Rejected = 174_130_302
The connection has been rejected by the producer.
StatusUnspecified = 42_133_066
Implementations§
source§impl PscConnectionStatus
impl PscConnectionStatus
sourcepub fn from_i32(value: i32) -> Option<PscConnectionStatus>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<PscConnectionStatus>
Converts an i32
to a PscConnectionStatus
, or None
if value
is not a valid variant.
source§impl PscConnectionStatus
impl PscConnectionStatus
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 PscConnectionStatus
impl Clone for PscConnectionStatus
source§fn clone(&self) -> PscConnectionStatus
fn clone(&self) -> PscConnectionStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PscConnectionStatus
impl Debug for PscConnectionStatus
source§impl Default for PscConnectionStatus
impl Default for PscConnectionStatus
source§fn default() -> PscConnectionStatus
fn default() -> PscConnectionStatus
source§impl From<PscConnectionStatus> for i32
impl From<PscConnectionStatus> for i32
source§fn from(value: PscConnectionStatus) -> i32
fn from(value: PscConnectionStatus) -> i32
source§impl Hash for PscConnectionStatus
impl Hash for PscConnectionStatus
source§impl Ord for PscConnectionStatus
impl Ord for PscConnectionStatus
source§fn cmp(&self, other: &PscConnectionStatus) -> Ordering
fn cmp(&self, other: &PscConnectionStatus) -> 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 PscConnectionStatus
impl PartialEq for PscConnectionStatus
source§fn eq(&self, other: &PscConnectionStatus) -> bool
fn eq(&self, other: &PscConnectionStatus) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PscConnectionStatus
impl PartialOrd for PscConnectionStatus
source§fn partial_cmp(&self, other: &PscConnectionStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &PscConnectionStatus) -> 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 PscConnectionStatus
impl TryFrom<i32> for PscConnectionStatus
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PscConnectionStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<PscConnectionStatus, UnknownEnumValue>
impl Copy for PscConnectionStatus
impl Eq for PscConnectionStatus
impl StructuralPartialEq for PscConnectionStatus
Auto Trait Implementations§
impl Freeze for PscConnectionStatus
impl RefUnwindSafe for PscConnectionStatus
impl Send for PscConnectionStatus
impl Sync for PscConnectionStatus
impl Unpin for PscConnectionStatus
impl UnwindSafe for PscConnectionStatus
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