pub struct OutputObserver { /* private fields */ }Expand description
Optional callbacks for line-oriented process output.
Implementations§
Source§impl OutputObserver
impl OutputObserver
Sourcepub fn with_stdout_line(
self,
callback: impl Fn(&str) + Send + Sync + 'static,
) -> Self
pub fn with_stdout_line( self, callback: impl Fn(&str) + Send + Sync + 'static, ) -> Self
Observe each stdout line.
Sourcepub fn with_stderr_line(
self,
callback: impl Fn(&str) + Send + Sync + 'static,
) -> Self
pub fn with_stderr_line( self, callback: impl Fn(&str) + Send + Sync + 'static, ) -> Self
Observe each stderr line.
Trait Implementations§
Source§impl Clone for OutputObserver
impl Clone for OutputObserver
Source§fn clone(&self) -> OutputObserver
fn clone(&self) -> OutputObserver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OutputObserver
impl Debug for OutputObserver
Source§impl Default for OutputObserver
impl Default for OutputObserver
Source§fn default() -> OutputObserver
fn default() -> OutputObserver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for OutputObserver
impl !UnwindSafe for OutputObserver
impl Freeze for OutputObserver
impl Send for OutputObserver
impl Sync for OutputObserver
impl Unpin for OutputObserver
impl UnsafeUnpin for OutputObserver
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