pub struct SupervisedProcess { /* private fields */ }Implementations§
Source§impl SupervisedProcess
impl SupervisedProcess
pub fn spawn( config: SupervisorConfig, program: &str, args: &[&str], ) -> Result<Self, Error>
pub fn capture_output(&mut self)
pub fn wait(&mut self) -> ProcessExit
pub fn kill_group(&mut self)
pub fn save_artifacts(&self, label: &str) -> Result<()>
pub fn artifact_dir(&self) -> &Path
pub fn stdout_lines(&self) -> &[String]
pub fn stderr_lines(&self) -> &[String]
pub fn pid(&self) -> u32
Trait Implementations§
Source§impl Drop for SupervisedProcess
impl Drop for SupervisedProcess
Auto Trait Implementations§
impl Freeze for SupervisedProcess
impl RefUnwindSafe for SupervisedProcess
impl Send for SupervisedProcess
impl Sync for SupervisedProcess
impl Unpin for SupervisedProcess
impl UnsafeUnpin for SupervisedProcess
impl UnwindSafe for SupervisedProcess
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more