pub struct WaitResult {
pub output: CommandOutput,
pub containers: Vec<String>,
pub exit_codes: Vec<i32>,
}
Expand description
Result from the wait command
Fields§
§output: CommandOutput
Raw command output
containers: Vec<String>
Containers that were waited for
exit_codes: Vec<i32>
Exit codes from the containers
Implementations§
Source§impl WaitResult
impl WaitResult
Sourcepub fn containers(&self) -> &[String]
pub fn containers(&self) -> &[String]
Get the waited container names
Sourcepub fn exit_codes(&self) -> &[i32]
pub fn exit_codes(&self) -> &[i32]
Get the exit codes
Sourcepub fn all_successful(&self) -> bool
pub fn all_successful(&self) -> bool
Check if all containers exited successfully (exit code 0)
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