Struct CodingCliCommand
pub struct CodingCliCommand {
pub program: OsString,
pub args: Vec<OsString>,
pub env: Vec<(OsString, OsString)>,
pub runtime_env_keys: Vec<OsString>,
pub working_dir: PathBuf,
pub timeout_secs: u64,
}Fields§
§program: OsString§args: Vec<OsString>§env: Vec<(OsString, OsString)>§runtime_env_keys: Vec<OsString>§working_dir: PathBuf§timeout_secs: u64Implementations§
Source§impl CodingCliCommand
impl CodingCliCommand
pub fn new( program: impl Into<OsString>, working_dir: PathBuf, timeout_secs: u64, ) -> Self
pub fn arg(&mut self, arg: impl Into<OsString>) -> &mut Self
pub fn args<I, S>(&mut self, args: I) -> &mut Self
pub fn env( &mut self, key: impl Into<OsString>, value: impl Into<OsString>, ) -> &mut Self
pub fn runtime_env_key(&mut self, key: impl Into<OsString>) -> &mut Self
Trait Implementations§
Source§impl Clone for CodingCliCommand
impl Clone for CodingCliCommand
Source§fn clone(&self) -> CodingCliCommand
fn clone(&self) -> CodingCliCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CodingCliCommand
impl RefUnwindSafe for CodingCliCommand
impl Send for CodingCliCommand
impl Sync for CodingCliCommand
impl Unpin for CodingCliCommand
impl UnsafeUnpin for CodingCliCommand
impl UnwindSafe for CodingCliCommand
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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> 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>
Converts
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>
Converts
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