pub struct ComposeKillCommand {
pub config: ComposeConfig,
pub signal: Option<String>,
pub remove_orphans: bool,
pub services: Vec<String>,
}
Expand description
Docker Compose kill command
Force stop service containers.
Fields§
§config: ComposeConfig
Base configuration
signal: Option<String>
Signal to send (default: SIGKILL)
remove_orphans: bool
Remove containers after killing
services: Vec<String>
Services to kill
Implementations§
Source§impl ComposeKillCommand
impl ComposeKillCommand
Sourcepub fn project_name(self, name: impl Into<String>) -> Self
pub fn project_name(self, name: impl Into<String>) -> Self
Set project name
Sourcepub fn remove_orphans(self) -> Self
pub fn remove_orphans(self) -> Self
Remove orphaned containers
Trait Implementations§
Source§impl Clone for ComposeKillCommand
impl Clone for ComposeKillCommand
Source§fn clone(&self) -> ComposeKillCommand
fn clone(&self) -> ComposeKillCommand
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 moreSource§impl ComposeCommandV2 for ComposeKillCommand
impl ComposeCommandV2 for ComposeKillCommand
Source§type Output = KillResult
type Output = KillResult
The output type this command produces
Source§fn get_config(&self) -> &ComposeConfig
fn get_config(&self) -> &ComposeConfig
Get the compose configuration
Source§fn get_config_mut(&mut self) -> &mut ComposeConfig
fn get_config_mut(&mut self) -> &mut ComposeConfig
Get mutable compose configuration
Source§fn execute_compose<'life0, 'async_trait>(
&'life0 self,
args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn execute_compose<'life0, 'async_trait>(
&'life0 self,
args: Vec<String>,
) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute compose command with given arguments
Source§impl Debug for ComposeKillCommand
impl Debug for ComposeKillCommand
Source§impl Default for ComposeKillCommand
impl Default for ComposeKillCommand
Source§fn default() -> ComposeKillCommand
fn default() -> ComposeKillCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposeKillCommand
impl RefUnwindSafe for ComposeKillCommand
impl Send for ComposeKillCommand
impl Sync for ComposeKillCommand
impl Unpin for ComposeKillCommand
impl UnwindSafe for ComposeKillCommand
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