Struct watchexec_supervisor::command::Command
source · pub struct Command {
pub program: Program,
pub options: SpawnOptions,
}Expand description
A command to execute.
Example
Command {
program: Program::Exec {
prog: "make".into(),
args: vec!["check".into()],
},
options: Default::default(),
};Fields§
§program: ProgramProgram to execute for this command.
options: SpawnOptionsOptions for spawning the program.
Implementations§
source§impl Command
impl Command
sourcepub fn to_spawnable(&self) -> TokioCommand
pub fn to_spawnable(&self) -> TokioCommand
Obtain a tokio::process::Command.
Trait Implementations§
source§impl PartialEq for Command
impl PartialEq for Command
impl Eq for Command
impl StructuralEq for Command
impl StructuralPartialEq for Command
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§
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