pub struct CommandOutput {
pub success: bool,
pub exit_code: i32,
pub stdout: Vec<u8>,
pub stderr: Vec<u8>,
}Expand description
명령 실행 결과
Fields§
§success: bool§exit_code: i32§stdout: Vec<u8>§stderr: Vec<u8>Implementations§
Source§impl CommandOutput
impl CommandOutput
Sourcepub fn stdout_string(&self) -> String
pub fn stdout_string(&self) -> String
stdout를 UTF-8 문자열로 변환
Sourcepub fn stderr_string(&self) -> String
pub fn stderr_string(&self) -> String
stderr를 UTF-8 문자열로 변환
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 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