pub trait SendRuntime {
type Child: SendChild;
// Required methods
fn spawn(&self, future: impl Future + Send + 'static);
fn start_child(
&self,
cmd: &OsStr,
args: &[&OsStr],
env: CgiEnvironment,
cwd: Option<PathBuf>,
) -> Result<Self::Child, Error>;
}Available on crate feature
client only.Expand description
Send runtime trait for CGI “client”.
Required Associated Types§
Required Methods§
Sourcefn spawn(&self, future: impl Future + Send + 'static)
fn spawn(&self, future: impl Future + Send + 'static)
Spawns a new task to execute the given future.
Sourcefn start_child(
&self,
cmd: &OsStr,
args: &[&OsStr],
env: CgiEnvironment,
cwd: Option<PathBuf>,
) -> Result<Self::Child, Error>
fn start_child( &self, cmd: &OsStr, args: &[&OsStr], env: CgiEnvironment, cwd: Option<PathBuf>, ) -> 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.