pub struct ShellResult {
pub exit_code: i32,
pub stdout: String,
pub stderr: String,
pub duration_ms: u64,
}Expand description
Shell 执行结果
Fields§
§exit_code: i32退出码
stdout: String标准输出
stderr: String标准错误
duration_ms: u64执行时长(毫秒)
Trait Implementations§
Source§impl Clone for ShellResult
impl Clone for ShellResult
Source§fn clone(&self) -> ShellResult
fn clone(&self) -> ShellResult
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 ShellResult
impl RefUnwindSafe for ShellResult
impl Send for ShellResult
impl Sync for ShellResult
impl Unpin for ShellResult
impl UnsafeUnpin for ShellResult
impl UnwindSafe for ShellResult
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