pub struct WaitResult {
pub output: String,
pub success: bool,
pub exit_codes: Vec<i32>,
}
Expand description
Result from wait command
Fields§
§output: String
Output from the command
success: bool
Whether the operation succeeded
exit_codes: Vec<i32>
Exit codes from services
Implementations§
Source§impl WaitResult
impl WaitResult
Sourcepub fn all_successful(&self) -> bool
pub fn all_successful(&self) -> bool
Check if all services exited successfully (code 0)
Sourcepub fn first_failure(&self) -> Option<i32>
pub fn first_failure(&self) -> Option<i32>
Get the first non-zero exit code
Trait Implementations§
Source§impl Clone for WaitResult
impl Clone for WaitResult
Source§fn clone(&self) -> WaitResult
fn clone(&self) -> WaitResult
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 WaitResult
impl RefUnwindSafe for WaitResult
impl Send for WaitResult
impl Sync for WaitResult
impl Unpin for WaitResult
impl UnwindSafe for WaitResult
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