Struct winspawn::Child [−][src]
pub struct Child { /* fields omitted */ }
Expand description
Represent child process.
An instance is a Future that represents an asynchronous termination.
Example
use std::io; #[tokio::main(flavor = "current_thread")] async fn main() -> io::Result<()> { let mut proc = winspawn::spawn("cargo", ["--version"])?; let exit_code = proc.await?; assert_eq!(0, exit_code); Ok(()) }
Implementations
Try wait for exit.
Return immediately. If the process is finished, the exit code can be acquired.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Child
impl UnwindSafe for Child
Blanket Implementations
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.