Runtime

Trait Runtime 

Source
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§

Source

fn spawn(&self, future: impl Future + 'static)

Spawns a new task to execute the given future.

Source

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.

Implementors§