pub struct KillResult {
pub killed: Vec<String>,
pub signal: Option<String>,
pub output: CommandOutput,
}
Expand description
Result from the kill command
Fields§
§killed: Vec<String>
List of killed container IDs
signal: Option<String>
Signal that was sent
output: CommandOutput
Raw command output
Implementations§
Source§impl KillResult
impl KillResult
Sourcepub fn all_killed(&self) -> bool
pub fn all_killed(&self) -> bool
Check if all containers were killed successfully
Sourcepub fn signal_sent(&self) -> &str
pub fn signal_sent(&self) -> &str
Get the signal that was sent
Trait Implementations§
Source§impl Clone for KillResult
impl Clone for KillResult
Source§fn clone(&self) -> KillResult
fn clone(&self) -> KillResult
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 KillResult
impl RefUnwindSafe for KillResult
impl Send for KillResult
impl Sync for KillResult
impl Unpin for KillResult
impl UnwindSafe for KillResult
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