ComposeCommandV2

Trait ComposeCommandV2 

Source
pub trait ComposeCommandV2 {
    type Output;

    // Required methods
    fn get_config(&self) -> &ComposeConfig;
    fn get_config_mut(&mut self) -> &mut ComposeConfig;
    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<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn execute_compose_command<'life0, 'async_trait>(
        &'life0 self,
        args: Vec<String>,
    ) -> Pin<Box<dyn Future<Output = Result<ComposeOutput>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Common trait for new compose commands

Required Associated Types§

Source

type Output

The output type this command produces

Required Methods§

Source

fn get_config(&self) -> &ComposeConfig

Get the compose configuration

Source

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,

Execute compose command with given arguments

Source

fn execute<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Self::Output>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Execute the command

Provided Methods§

Source

fn execute_compose_command<'life0, 'async_trait>( &'life0 self, args: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<ComposeOutput>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Helper to execute compose command

Implementors§

Source§

impl ComposeCommandV2 for ComposeAttachCommand

Source§

impl ComposeCommandV2 for ComposeConfigCommand

Source§

impl ComposeCommandV2 for ComposeConvertCommand

Source§

impl ComposeCommandV2 for ComposeCpCommand

Source§

impl ComposeCommandV2 for ComposeCreateCommand

Source§

impl ComposeCommandV2 for ComposeEventsCommand

Source§

impl ComposeCommandV2 for ComposeImagesCommand

Source§

impl ComposeCommandV2 for ComposeKillCommand

Source§

impl ComposeCommandV2 for ComposeLsCommand

Source§

impl ComposeCommandV2 for ComposePauseCommand

Source§

impl ComposeCommandV2 for ComposePortCommand

Source§

impl ComposeCommandV2 for ComposePushCommand

Source§

impl ComposeCommandV2 for ComposeRmCommand

Source§

impl ComposeCommandV2 for ComposeScaleCommand

Source§

impl ComposeCommandV2 for ComposeTopCommand

Source§

impl ComposeCommandV2 for ComposeUnpauseCommand

Source§

impl ComposeCommandV2 for ComposeVersionCommand

Source§

impl ComposeCommandV2 for ComposeWaitCommand

Source§

impl ComposeCommandV2 for ComposeWatchCommand