Enum gapi_grpc::google::devtools::remoteworkers::v1test2::LeaseState[][src]

#[repr(i32)]pub enum LeaseState {
    Unspecified,
    Pending,
    Active,
    Completed,
    Cancelled,
}

The state of the lease. All leases start in the PENDING state. A bot can change PENDING to ACTIVE or (in the case of an error) COMPLETED, or from ACTIVE to COMPLETED. The server can change PENDING or ACTIVE to CANCELLED if it wants the bot to release its resources - for example, if the bot needs to be quarantined (it’s producing bad output) or a cell needs to be drained.

Variants

Unspecified

Default value; do not use.

Pending

Pending: the server expects the bot to accept this lease. This may only be set by the server.

Active

Active: the bot has accepted this lease. This may only be set by the bot.

Completed

Completed: the bot is no longer leased. This may only be set by the bot, and the status field must be populated iff the state is COMPLETED.

Cancelled

Cancelled: The bot should immediately release all resources associated with the lease. This may only be set by the server.

Implementations

impl LeaseState[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of LeaseState.

pub fn from_i32(value: i32) -> Option<LeaseState>[src]

Converts an i32 to a LeaseState, or None if value is not a valid variant.

Trait Implementations

impl Clone for LeaseState[src]

impl Copy for LeaseState[src]

impl Debug for LeaseState[src]

impl Default for LeaseState[src]

impl Eq for LeaseState[src]

impl From<LeaseState> for i32[src]

impl Hash for LeaseState[src]

impl Ord for LeaseState[src]

impl PartialEq<LeaseState> for LeaseState[src]

impl PartialOrd<LeaseState> for LeaseState[src]

impl StructuralEq for LeaseState[src]

impl StructuralPartialEq for LeaseState[src]

Auto Trait Implementations

impl RefUnwindSafe for LeaseState

impl Send for LeaseState

impl Sync for LeaseState

impl Unpin for LeaseState

impl UnwindSafe for LeaseState

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]