pub struct StderrObserver { /* private fields */ }Expand description
The default CommandObserver: writes one line per command to stderr
(never stdout, so a stdout JSON-RPC transport stays clean), prefixed with a
short tag. Format: `<tag>: <program> <args…> (cwd: <dir>) -> <status> in <dur>`.
Implementations§
Trait Implementations§
Source§impl Clone for StderrObserver
impl Clone for StderrObserver
Source§fn clone(&self) -> StderrObserver
fn clone(&self) -> StderrObserver
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 CommandObserver for StderrObserver
impl CommandObserver for StderrObserver
Source§fn on_command(&self, record: &CommandRecord<'_>)
fn on_command(&self, record: &CommandRecord<'_>)
Called once per observed command, synchronously, after it finishes (or,
for a streaming
ProcessRunner::start, right after the handle is
returned). Keep it cheap and non-blocking; it runs on the calling task.Source§impl Debug for StderrObserver
impl Debug for StderrObserver
Auto Trait Implementations§
impl Freeze for StderrObserver
impl RefUnwindSafe for StderrObserver
impl Send for StderrObserver
impl Sync for StderrObserver
impl Unpin for StderrObserver
impl UnsafeUnpin for StderrObserver
impl UnwindSafe for StderrObserver
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