Enum google_api_proto::google::cloud::shell::v1::cloud_shell_error_details::CloudShellErrorCode
source · #[repr(i32)]pub enum CloudShellErrorCode {
Unspecified = 0,
ImageUnavailable = 1,
CloudShellDisabled = 2,
TosViolation = 4,
QuotaExceeded = 5,
EnvironmentUnavailable = 6,
}
Expand description
Set of possible errors returned from API calls.
Variants§
Unspecified = 0
An unknown error occurred.
The image used by the Cloud Shell environment either does not exist or the user does not have access to it.
CloudShellDisabled = 2
Cloud Shell has been disabled by an administrator for the user making the request.
TosViolation = 4
Cloud Shell has been permanently disabled due to a Terms of Service violation by the user.
QuotaExceeded = 5
The user has exhausted their weekly Cloud Shell quota, and Cloud Shell will be disabled until the quota resets.
The Cloud Shell environment is unavailable and cannot be connected to at the moment.
Implementations§
source§impl CloudShellErrorCode
impl CloudShellErrorCode
sourcepub fn from_i32(value: i32) -> Option<CloudShellErrorCode>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<CloudShellErrorCode>
Converts an i32
to a CloudShellErrorCode
, or None
if value
is not a valid variant.
source§impl CloudShellErrorCode
impl CloudShellErrorCode
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 CloudShellErrorCode
impl Clone for CloudShellErrorCode
source§fn clone(&self) -> CloudShellErrorCode
fn clone(&self) -> CloudShellErrorCode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CloudShellErrorCode
impl Debug for CloudShellErrorCode
source§impl Default for CloudShellErrorCode
impl Default for CloudShellErrorCode
source§fn default() -> CloudShellErrorCode
fn default() -> CloudShellErrorCode
source§impl From<CloudShellErrorCode> for i32
impl From<CloudShellErrorCode> for i32
source§fn from(value: CloudShellErrorCode) -> i32
fn from(value: CloudShellErrorCode) -> i32
source§impl Hash for CloudShellErrorCode
impl Hash for CloudShellErrorCode
source§impl Ord for CloudShellErrorCode
impl Ord for CloudShellErrorCode
source§fn cmp(&self, other: &CloudShellErrorCode) -> Ordering
fn cmp(&self, other: &CloudShellErrorCode) -> 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 CloudShellErrorCode
impl PartialEq for CloudShellErrorCode
source§fn eq(&self, other: &CloudShellErrorCode) -> bool
fn eq(&self, other: &CloudShellErrorCode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CloudShellErrorCode
impl PartialOrd for CloudShellErrorCode
source§fn partial_cmp(&self, other: &CloudShellErrorCode) -> Option<Ordering>
fn partial_cmp(&self, other: &CloudShellErrorCode) -> 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 CloudShellErrorCode
impl TryFrom<i32> for CloudShellErrorCode
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<CloudShellErrorCode, DecodeError>
fn try_from(value: i32) -> Result<CloudShellErrorCode, DecodeError>
impl Copy for CloudShellErrorCode
impl Eq for CloudShellErrorCode
impl StructuralPartialEq for CloudShellErrorCode
Auto Trait Implementations§
impl Freeze for CloudShellErrorCode
impl RefUnwindSafe for CloudShellErrorCode
impl Send for CloudShellErrorCode
impl Sync for CloudShellErrorCode
impl Unpin for CloudShellErrorCode
impl UnwindSafe for CloudShellErrorCode
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