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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".