pub struct State(/* private fields */);Expand description
Possible states an environment might transition between during startup. These states are not normally actionable by clients, but may be used to show a progress message to the user. An environment won’t necessarily go through all of these states when starting. More states are likely to be added in the future.
Implementations§
Source§impl State
impl State
Sourcepub const STATE_UNSPECIFIED: State
pub const STATE_UNSPECIFIED: State
The environment’s start state is unknown.
Sourcepub const STARTING: State
pub const STARTING: State
The environment is in the process of being started, but no additional details are available.
Sourcepub const UNARCHIVING_DISK: State
pub const UNARCHIVING_DISK: State
Startup is waiting for the user’s disk to be unarchived. This can happen when the user returns to Cloud Shell after not having used it for a while, and suggests that startup will take longer than normal.
Sourcepub const AWAITING_COMPUTE_RESOURCES: State
pub const AWAITING_COMPUTE_RESOURCES: State
Startup is waiting for compute resources to be assigned to the environment. This should normally happen very quickly, but an environment might stay in this state for an extended period of time if the system is experiencing heavy load.
Sourcepub const FINISHED: State
pub const FINISHED: State
Startup has completed. If the start operation was successful, the user should be able to establish an SSH connection to their environment. Otherwise, the operation will contain details of the failure.
Sourcepub fn as_str_name(&self) -> Cow<'static, str>
pub fn as_str_name(&self) -> Cow<'static, str>
Gets the enum value as a string.
Sourcepub fn from_str_name(name: &str) -> Option<Self>
pub fn from_str_name(name: &str) -> Option<Self>
Creates an enum value from the value name.