pub struct ComposeWaitCommand {
pub config: ComposeConfig,
pub services: Vec<String>,
pub down_project: bool,
}
Expand description
Docker Compose wait command
Wait for services to reach a desired state.
Fields§
§config: ComposeConfig
Base configuration
services: Vec<String>
Services to wait for
down_project: bool
Wait for services to be running and healthy
Implementations§
Source§impl ComposeWaitCommand
impl ComposeWaitCommand
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 down_project(self) -> Self
pub fn down_project(self) -> Self
Wait for the entire project to stop
Trait Implementations§
Source§impl Clone for ComposeWaitCommand
impl Clone for ComposeWaitCommand
Source§fn clone(&self) -> ComposeWaitCommand
fn clone(&self) -> ComposeWaitCommand
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 ComposeWaitCommand
impl ComposeCommandV2 for ComposeWaitCommand
Source§type Output = WaitResult
type Output = WaitResult
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 ComposeWaitCommand
impl Debug for ComposeWaitCommand
Source§impl Default for ComposeWaitCommand
impl Default for ComposeWaitCommand
Source§fn default() -> ComposeWaitCommand
fn default() -> ComposeWaitCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposeWaitCommand
impl RefUnwindSafe for ComposeWaitCommand
impl Send for ComposeWaitCommand
impl Sync for ComposeWaitCommand
impl Unpin for ComposeWaitCommand
impl UnwindSafe for ComposeWaitCommand
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