pub struct CommandRecord<'a> {
pub program: &'a str,
pub args: &'a [String],
pub working_dir: Option<&'a Path>,
pub status: CommandStatus,
pub duration: Duration,
}Expand description
A display-safe, already-redacted record of one command a LoggingRunner ran,
handed to a CommandObserver. Every field is safe to print: args has been
through redact_args, and status carries no captured process output.
Display renders the canonical one-line summary the built-in
StderrObserver uses (minus its tag), so a custom observer can reuse the
exact formatting or read the structured fields directly.
Fields§
§program: &'a strThe program launched (its path/name as given — not a secret).
args: &'a [String]The arguments, already redacted by redact_args.
working_dir: Option<&'a Path>The working directory the command ran in, if one was bound.
status: CommandStatusHow the run finished.
duration: DurationWall-clock time the run took. Duration::ZERO for a
CommandStatus::Started record (completion is observed elsewhere).
Trait Implementations§
Source§impl<'a> Debug for CommandRecord<'a>
impl<'a> Debug for CommandRecord<'a>
Auto Trait Implementations§
impl<'a> Freeze for CommandRecord<'a>
impl<'a> RefUnwindSafe for CommandRecord<'a>
impl<'a> Send for CommandRecord<'a>
impl<'a> Sync for CommandRecord<'a>
impl<'a> Unpin for CommandRecord<'a>
impl<'a> UnsafeUnpin for CommandRecord<'a>
impl<'a> UnwindSafe for CommandRecord<'a>
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