pub enum ProcessEvent {
_Unknown,
Starting,
Started,
StartError,
IOError,
IOEof,
IOData,
ExitRequested,
KillRequested,
Exited,
KillError,
}Expand description
Various events associated with process’s life-cycle
Variants
_Unknown
Default value placeholder
Starting
Process is starting but not yet started!
Started
Process is started
StartError
Error occured while starting the process itself
IOError
Process started but error occured during reading the output data
IOEof
Process started and output data reader reached to the EOF, means process’s output data is unavailable
IOData
Process started and a line from the output data is available now
ExitRequested
Process started and during IOData reading based on the API consumer’s decision the callback returned [Some(false)] ,
which means process’s exit request is submitted
KillRequested
Kill API was used to kill the process
Exited
Process which was started earlier now exited
KillError
A error occured while killing/stopping the process
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ProcessEvent
impl Send for ProcessEvent
impl Sync for ProcessEvent
impl Unpin for ProcessEvent
impl UnwindSafe for ProcessEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more