pub enum ChildProcessEvent {
Stdout(Buffer),
Stderr(Buffer),
Error(String),
Terminated(ExitStatus),
}
Expand description
Event emitted by child process execution.
Variants§
Stdout(Buffer)
Raw or line-buffered stdout output. If configured for raw output, all bytes written to stdout. Otherwise, bytes until a newline (\n) or carriage return (\r) is found.
Stderr(Buffer)
Raw or line-buffered stderr output. If configured for raw output, all bytes written to stderr. Otherwise, bytes until a newline (\n) or carriage return (\r) is found.
Error(String)
An error occurred waiting for the child process to finish.
Terminated(ExitStatus)
Child process terminated.
Trait Implementations§
Source§impl Clone for ChildProcessEvent
impl Clone for ChildProcessEvent
Source§fn clone(&self) -> ChildProcessEvent
fn clone(&self) -> ChildProcessEvent
Returns a copy 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 ChildProcessEvent
impl Debug for ChildProcessEvent
Source§impl<'de> Deserialize<'de> for ChildProcessEvent
impl<'de> Deserialize<'de> for ChildProcessEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChildProcessEvent
impl PartialEq for ChildProcessEvent
Source§impl Serialize for ChildProcessEvent
impl Serialize for ChildProcessEvent
impl Eq for ChildProcessEvent
impl StructuralPartialEq for ChildProcessEvent
Auto Trait Implementations§
impl Freeze for ChildProcessEvent
impl RefUnwindSafe for ChildProcessEvent
impl Send for ChildProcessEvent
impl Sync for ChildProcessEvent
impl Unpin for ChildProcessEvent
impl UnwindSafe for ChildProcessEvent
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