Enum gapi_grpc::google::devtools::remoteworkers::v1test2::admin_temp::Command[][src]

#[repr(i32)]pub enum Command {
    Unspecified,
    BotUpdate,
    BotRestart,
    BotTerminate,
    HostRestart,
}

Possible administration actions.

Variants

Unspecified

Illegal value.

BotUpdate

Download and run a new version of the bot. arg will be a resource accessible via ByteStream.Read to obtain the new bot code.

BotRestart

Restart the bot without downloading a new version. arg will be a message to log.

BotTerminate

Shut down the bot. arg will be a task resource name (similar to those in tasks.proto) that the bot can use to tell the server that it is terminating.

HostRestart

Restart the host computer. arg will be a message to log.

Implementations

impl Command[src]

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

Returns true if value is a variant of Command.

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

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

Trait Implementations

impl Clone for Command[src]

impl Copy for Command[src]

impl Debug for Command[src]

impl Default for Command[src]

impl Eq for Command[src]

impl From<Command> for i32[src]

impl Hash for Command[src]

impl Ord for Command[src]

impl PartialEq<Command> for Command[src]

impl PartialOrd<Command> for Command[src]

impl StructuralEq for Command[src]

impl StructuralPartialEq for Command[src]

Auto Trait Implementations

impl RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl UnwindSafe for Command

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]