pub trait Runtime {
type Child: Child;
// Required methods
fn spawn(&self, future: impl Future + 'static);
fn start_child(
&self,
cmd: &OsStr,
args: &[&OsStr],
env: CgiEnvironment,
) -> Result<Self::Child, Error>;
}Available on crate feature
client only.Expand description
Runtime trait for CGI “client”.
Required Associated Types§
Required Methods§
Sourcefn start_child(
&self,
cmd: &OsStr,
args: &[&OsStr],
env: CgiEnvironment,
) -> Result<Self::Child, Error>
fn start_child( &self, cmd: &OsStr, args: &[&OsStr], env: CgiEnvironment, ) -> Result<Self::Child, Error>
Starts a child process with the given command and arguments.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.