pub enum ProcessEvent {
Stdout(String),
Stderr(String),
Exited(i32),
Signaled(i32),
Killed,
Error(String),
}Expand description
Events emitted by a ProcessSubscription.
Variants§
Stdout(String)
A line of stdout output from the process.
Stderr(String)
A line of stderr output from the process.
Exited(i32)
The process exited with a status code.
Signaled(i32)
The process was terminated by a Unix signal.
Killed
The process was killed by the subscription (stop signal or timeout).
Error(String)
An error occurred spawning or monitoring the process.
Trait Implementations§
Source§impl Clone for ProcessEvent
impl Clone for ProcessEvent
Source§fn clone(&self) -> ProcessEvent
fn clone(&self) -> ProcessEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessEvent
impl Debug for ProcessEvent
Source§impl PartialEq for ProcessEvent
impl PartialEq for ProcessEvent
impl Eq for ProcessEvent
impl StructuralPartialEq for ProcessEvent
Auto Trait Implementations§
impl Freeze for ProcessEvent
impl RefUnwindSafe for ProcessEvent
impl Send for ProcessEvent
impl Sync for ProcessEvent
impl Unpin for ProcessEvent
impl UnsafeUnpin for ProcessEvent
impl UnwindSafe for ProcessEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.