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

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.