Skip to main content

ProcessObserver

Trait ProcessObserver 

Source
pub trait ProcessObserver {
    // Required methods
    fn status(&self, handle: &ProcessHandle) -> ProcessStatus;
    fn status_with_bound(
        &self,
        handle: &ProcessHandle,
        bound: &OperationBound,
    ) -> ProcessStatus;
    fn sync_logs(
        &self,
        handle: &ProcessHandle,
        stdout: &Path,
        stderr: &Path,
        cleanup: bool,
    ) -> Result<(), LogSyncError>;
}

Required Methods§

Source

fn status(&self, handle: &ProcessHandle) -> ProcessStatus

Source

fn status_with_bound( &self, handle: &ProcessHandle, bound: &OperationBound, ) -> ProcessStatus

Source

fn sync_logs( &self, handle: &ProcessHandle, stdout: &Path, stderr: &Path, cleanup: bool, ) -> Result<(), LogSyncError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§