#[non_exhaustive]pub enum Command {
Show 21 variants
JobList,
JobShow,
InstanceList,
InstanceShow,
ExecutionList,
ExecutionShow,
ExecutionSteps,
ExecutionPartitions,
ExecutionHistory,
ExecutionStop,
ExecutionRestart,
ExecutionAbandon,
ExecutionRecover,
Launch,
RetentionPlan,
RetentionApply,
RetentionHold,
RetentionRelease,
ConfigShow,
SchemaStatus,
DiagnosticsBundle,
}Expand description
One command of the closed oxide-batch <noun> <verb> grammar.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
JobList
List registered job names.
JobShow
Show one job’s definition identity.
InstanceList
List instances of a job.
InstanceShow
Show one instance.
ExecutionList
List executions of an instance, or age-bounded stale candidates.
ExecutionShow
Show one execution projection.
ExecutionSteps
List step executions.
ExecutionPartitions
List partitions of a partitioned step.
ExecutionHistory
List flow, recovery, and operator records.
ExecutionStop
Request a durable stop.
ExecutionRestart
Start a new attempt.
ExecutionAbandon
Make an execution permanently non-restartable.
ExecutionRecover
Propose and apply a recovery decision.
Launch
Launch a registered job.
RetentionPlan
Produce a bounded purge plan and digest.
RetentionApply
Apply a purge plan.
RetentionHold
Place a hold on an instance.
RetentionRelease
Release a hold.
ConfigShow
Print effective configuration with sources.
SchemaStatus
Report schema version and migration state.
DiagnosticsBundle
Write a bounded redacted incident bundle.
Implementations§
Source§impl Command
impl Command
Sourcepub fn resolve(words: &[&str]) -> Option<Self>
pub fn resolve(words: &[&str]) -> Option<Self>
Resolves one closed noun and verb.
launch is the single one-word command; every other command is a noun
followed by a verb.
Sourcepub const fn class(self) -> ActionClass
pub const fn class(self) -> ActionClass
Returns the class a deployment authorizes before the command runs.
Sourcepub const fn is_mutating(self) -> bool
pub const fn is_mutating(self) -> bool
Returns whether the command can change durable state.
Sourcepub const fn supports_dry_run(self) -> bool
pub const fn supports_dry_run(self) -> bool
Returns whether --dry-run is accepted.
Dry run is offered only where a guard evaluation or a plan digest is worth reporting without a mutation.
Sourcepub const fn is_paginated(self) -> bool
pub const fn is_paginated(self) -> bool
Returns whether the command reads a bounded page of rows.
Sourcepub const fn needs_repository(self) -> bool
pub const fn needs_repository(self) -> bool
Returns whether the command needs an open repository connection.
Trait Implementations§
impl Copy for Command
impl Eq for Command
Source§impl Ord for Command
impl Ord for Command
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Command
impl PartialOrd for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more