Enum google_api_proto::google::cloud::functions::v1::CloudFunctionStatus
source · #[repr(i32)]pub enum CloudFunctionStatus {
Unspecified = 0,
Active = 1,
Offline = 2,
DeployInProgress = 3,
DeleteInProgress = 4,
Unknown = 5,
}
Expand description
Describes the current stage of a deployment.
Variants§
Unspecified = 0
Not specified. Invalid state.
Active = 1
Function has been successfully deployed and is serving.
Offline = 2
Function deployment failed and the function isn’t serving.
DeployInProgress = 3
Function is being created or updated.
DeleteInProgress = 4
Function is being deleted.
Unknown = 5
Function deployment failed and the function serving state is undefined. The function should be updated or deleted to move it out of this state.
Implementations§
source§impl CloudFunctionStatus
impl CloudFunctionStatus
sourcepub fn from_i32(value: i32) -> Option<CloudFunctionStatus>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CloudFunctionStatus>
Converts an i32
to a CloudFunctionStatus
, or None
if value
is not a valid variant.
source§impl CloudFunctionStatus
impl CloudFunctionStatus
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 CloudFunctionStatus
impl Clone for CloudFunctionStatus
source§fn clone(&self) -> CloudFunctionStatus
fn clone(&self) -> CloudFunctionStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CloudFunctionStatus
impl Debug for CloudFunctionStatus
source§impl Default for CloudFunctionStatus
impl Default for CloudFunctionStatus
source§fn default() -> CloudFunctionStatus
fn default() -> CloudFunctionStatus
source§impl From<CloudFunctionStatus> for i32
impl From<CloudFunctionStatus> for i32
source§fn from(value: CloudFunctionStatus) -> i32
fn from(value: CloudFunctionStatus) -> i32
source§impl Hash for CloudFunctionStatus
impl Hash for CloudFunctionStatus
source§impl Ord for CloudFunctionStatus
impl Ord for CloudFunctionStatus
source§fn cmp(&self, other: &CloudFunctionStatus) -> Ordering
fn cmp(&self, other: &CloudFunctionStatus) -> 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 CloudFunctionStatus
impl PartialEq for CloudFunctionStatus
source§fn eq(&self, other: &CloudFunctionStatus) -> bool
fn eq(&self, other: &CloudFunctionStatus) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CloudFunctionStatus
impl PartialOrd for CloudFunctionStatus
source§fn partial_cmp(&self, other: &CloudFunctionStatus) -> Option<Ordering>
fn partial_cmp(&self, other: &CloudFunctionStatus) -> 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 CloudFunctionStatus
impl TryFrom<i32> for CloudFunctionStatus
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<CloudFunctionStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<CloudFunctionStatus, UnknownEnumValue>
impl Copy for CloudFunctionStatus
impl Eq for CloudFunctionStatus
impl StructuralPartialEq for CloudFunctionStatus
Auto Trait Implementations§
impl Freeze for CloudFunctionStatus
impl RefUnwindSafe for CloudFunctionStatus
impl Send for CloudFunctionStatus
impl Sync for CloudFunctionStatus
impl Unpin for CloudFunctionStatus
impl UnwindSafe for CloudFunctionStatus
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