pub enum RunningState {
Running,
Terminated(ExitStatus),
Uncertain(Error),
}Expand description
Represents the running state of a process.
Variants§
Running
The process is still running.
Terminated(ExitStatus)
The process has terminated with the given exit status.
Uncertain(Error)
Failed to determine process state.
Implementations§
Trait Implementations§
Source§impl Debug for RunningState
impl Debug for RunningState
Source§impl From<RunningState> for bool
impl From<RunningState> for bool
Source§fn from(is_running: RunningState) -> Self
fn from(is_running: RunningState) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RunningState
impl !RefUnwindSafe for RunningState
impl Send for RunningState
impl Sync for RunningState
impl Unpin for RunningState
impl !UnwindSafe for RunningState
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