pub struct ShellOutput {
pub text: String,
pub truncated: bool,
pub exit_status: Option<TerminalExitStatus>,
}Expand description
A snapshot result of ShellBackend::output.
Fields§
§text: StringAccumulated combined stdout/stderr text up to this call. The backend guarantees valid UTF-8.
truncated: boolWhether the output was truncated by the backend due to a byte limit.
exit_status: Option<TerminalExitStatus>Set to the actual exit status when the process has exited, or None if it is
still running.
Trait Implementations§
Source§impl Clone for ShellOutput
impl Clone for ShellOutput
Source§fn clone(&self) -> ShellOutput
fn clone(&self) -> ShellOutput
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 moreAuto Trait Implementations§
impl Freeze for ShellOutput
impl RefUnwindSafe for ShellOutput
impl Send for ShellOutput
impl Sync for ShellOutput
impl Unpin for ShellOutput
impl UnsafeUnpin for ShellOutput
impl UnwindSafe for ShellOutput
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