Enum google_api_proto::google::devtools::remoteworkers::v1test2::BotStatus
source · #[repr(i32)]pub enum BotStatus {
Unspecified = 0,
Ok = 1,
Unhealthy = 2,
HostRebooting = 3,
BotTerminating = 4,
Initializing = 5,
}
Expand description
A coarse description of the status of the bot that the server uses to determine whether to assign the bot new leases.
Variants§
Unspecified = 0
Default value; do not use.
Ok = 1
The bot is healthy, and will accept leases as normal.
Unhealthy = 2
The bot is unhealthy and will not accept new leases. For example, the bot may have detected that available disk space is too low. This situation may resolve itself, but will typically require human intervention.
HostRebooting = 3
The bot has been asked to reboot the host. The bot will not accept new leases; once all leases are complete, this session will no longer be updated but the bot will be expected to establish a new session after the reboot completes.
BotTerminating = 4
The bot has been asked to shut down. As with HOST_REBOOTING, once all leases are completed, the session will no longer be updated and the bot will not be expected to establish a new session.
Bots are typically only asked to shut down if its host computer will be modified in some way, such as deleting a VM.
Initializing = 5
The bot is initializing and is not ready to accept leases.
Implementations§
source§impl BotStatus
impl BotStatus
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 Ord for BotStatus
impl Ord for BotStatus
source§impl PartialEq for BotStatus
impl PartialEq for BotStatus
source§impl PartialOrd for BotStatus
impl PartialOrd for BotStatus
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 BotStatus
impl TryFrom<i32> for BotStatus
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for BotStatus
impl Eq for BotStatus
impl StructuralPartialEq for BotStatus
Auto Trait Implementations§
impl Freeze for BotStatus
impl RefUnwindSafe for BotStatus
impl Send for BotStatus
impl Sync for BotStatus
impl Unpin for BotStatus
impl UnwindSafe for BotStatus
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