#[non_exhaustive]pub enum ProcessCommandSpec {
Argv(Vec<String>),
Shell(String),
}Expand description
Explicit process command mode used by SDK builders and specs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Argv(Vec<String>)
Execute a program directly with structured argv.
Shell(String)
Execute command text through the configured shell.
Trait Implementations§
Source§impl Clone for ProcessCommandSpec
impl Clone for ProcessCommandSpec
Source§fn clone(&self) -> ProcessCommandSpec
fn clone(&self) -> ProcessCommandSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessCommandSpec
impl Debug for ProcessCommandSpec
Source§impl<'de> Deserialize<'de> for ProcessCommandSpec
impl<'de> Deserialize<'de> for ProcessCommandSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProcessCommandSpec
Source§impl From<ProcessCommandSpec> for ProcessCommand
impl From<ProcessCommandSpec> for ProcessCommand
Source§fn from(value: ProcessCommandSpec) -> Self
fn from(value: ProcessCommandSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProcessCommandSpec
impl PartialEq for ProcessCommandSpec
Source§fn eq(&self, other: &ProcessCommandSpec) -> bool
fn eq(&self, other: &ProcessCommandSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProcessCommandSpec
impl Serialize for ProcessCommandSpec
impl StructuralPartialEq for ProcessCommandSpec
Auto Trait Implementations§
impl Freeze for ProcessCommandSpec
impl RefUnwindSafe for ProcessCommandSpec
impl Send for ProcessCommandSpec
impl Sync for ProcessCommandSpec
impl Unpin for ProcessCommandSpec
impl UnsafeUnpin for ProcessCommandSpec
impl UnwindSafe for ProcessCommandSpec
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
Mutably borrows from an owned value. Read more