pub struct StreamResult {
pub exit_code: i32,
pub success: bool,
pub stdout: Option<String>,
pub stderr: Option<String>,
}
Expand description
Result returned from streaming commands
Fields§
§exit_code: i32
Exit code of the command
success: bool
Whether the command succeeded (exit code 0)
stdout: Option<String>
Accumulated stdout if captured
stderr: Option<String>
Accumulated stderr if captured
Implementations§
Source§impl StreamResult
impl StreamResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the command was successful
Trait Implementations§
Source§impl Clone for StreamResult
impl Clone for StreamResult
Source§fn clone(&self) -> StreamResult
fn clone(&self) -> StreamResult
Returns a duplicate of the value. Read more
1.0.0 · 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 StreamResult
impl RefUnwindSafe for StreamResult
impl Send for StreamResult
impl Sync for StreamResult
impl Unpin for StreamResult
impl UnwindSafe for StreamResult
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