mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
tokio-process: Implement From<StdCommand> for Command (#1513)
This commit is contained in:
parent
2f91c85ad8
commit
26432355d5
@ -641,6 +641,12 @@ impl Command {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<StdCommand> for Command {
|
||||||
|
fn from(std: StdCommand) -> Command {
|
||||||
|
Command { std }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// A drop guard which ensures the child process is killed on drop to maintain
|
/// A drop guard which ensures the child process is killed on drop to maintain
|
||||||
/// the contract of dropping a Future leads to "cancellation".
|
/// the contract of dropping a Future leads to "cancellation".
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user