pub struct CommandOutput {
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
pub exit_code: i32,
}Expand description
Collected output from a completed remote command.
Returned by WinrmClient::run_command and
WinrmClient::run_powershell.
Streams are raw bytes; use String::from_utf8_lossy for text conversion.
Fields§
§stdout: Vec<u8>Standard output bytes accumulated from all Receive polls.
stderr: Vec<u8>Standard error bytes accumulated from all Receive polls.
exit_code: i32Process exit code, or -1 if the server did not report one.
Trait Implementations§
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