#[non_exhaustive]pub struct RunOutput {
pub stdout: Vec<u8>,
pub stderr: String,
}Expand description
Captured output from a successful command.
Stdout is stored as raw bytes to support binary content. Use
stdout_lossy() for text.
Marked #[non_exhaustive] so future fields (e.g., exit status or
elapsed time) can be added without breaking callers. Construct via
procpilot’s runners — downstream code should read fields, not
construct this struct.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stdout: Vec<u8>§stderr: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunOutput
impl RefUnwindSafe for RunOutput
impl Send for RunOutput
impl Sync for RunOutput
impl Unpin for RunOutput
impl UnsafeUnpin for RunOutput
impl UnwindSafe for RunOutput
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