pub trait SandboxChild {
type Error: Error + 'static;
// Required methods
fn id(&self) -> u32;
fn stdin(&mut self) -> Option<&mut dyn Write>;
fn stdout(&mut self) -> Option<&mut dyn Read>;
fn stderr(&mut self) -> Option<&mut dyn Read>;
fn try_wait(&mut self) -> Result<Option<ExitStatus>, Self::Error>;
fn wait(&mut self) -> Result<ExitStatus, Self::Error>;
fn kill(&mut self) -> Result<(), Self::Error>;
}Expand description
Common lifecycle operations for one native sandbox instance.
Required Associated Types§
Required Methods§
Sourcefn stdin(&mut self) -> Option<&mut dyn Write>
fn stdin(&mut self) -> Option<&mut dyn Write>
Returns the piped standard input stream, if requested.
Sourcefn stdout(&mut self) -> Option<&mut dyn Read>
fn stdout(&mut self) -> Option<&mut dyn Read>
Returns the piped standard output stream, if requested.
Sourcefn stderr(&mut self) -> Option<&mut dyn Read>
fn stderr(&mut self) -> Option<&mut dyn Read>
Returns the piped standard error stream, if requested.
Sourcefn try_wait(&mut self) -> Result<Option<ExitStatus>, Self::Error>
fn try_wait(&mut self) -> Result<Option<ExitStatus>, Self::Error>
Checks for completion without waiting for the command.
Sourcefn wait(&mut self) -> Result<ExitStatus, Self::Error>
fn wait(&mut self) -> Result<ExitStatus, Self::Error>
Waits for completion while enforcing the prepared timeout policy.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".