pub struct CommandOutput {
pub status: RemoteExitStatus,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
pub stdout_dropped: u64,
pub stderr_dropped: u64,
pub stdin_error: Option<String>,
}Expand description
Bounded captured output of one finished remote command. stdout
keeps its first STDOUT_LIMIT bytes; stderr its first
STDERR_LIMIT bytes plus the last STDERR_TAIL bytes (where the
supervisor’s status record lives). The dropped counters say how
many further bytes arrived; treat any non-zero counter as
truncation, never as silence.
Fields§
§status: RemoteExitStatus§stdout: Vec<u8>§stderr: Vec<u8>§stdout_dropped: u64§stderr_dropped: u64§stdin_error: Option<String>Any upload failure is retained even when the program returned diagnostics.
Trait Implementations§
Source§impl Clone for CommandOutput
impl Clone for CommandOutput
Source§fn clone(&self) -> CommandOutput
fn clone(&self) -> CommandOutput
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 CommandOutput
impl Debug for CommandOutput
impl Eq for CommandOutput
Source§impl PartialEq for CommandOutput
impl PartialEq for CommandOutput
impl StructuralPartialEq for CommandOutput
Auto Trait Implementations§
impl Freeze for CommandOutput
impl RefUnwindSafe for CommandOutput
impl Send for CommandOutput
impl Sync for CommandOutput
impl Unpin for CommandOutput
impl UnsafeUnpin for CommandOutput
impl UnwindSafe for CommandOutput
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