pub struct ComposeRestartCommand { /* private fields */ }
Expand description
Docker Compose restart command builder
Implementations§
Source§impl ComposeRestartCommand
impl ComposeRestartCommand
Sourcepub fn with_config(config: ComposeConfig) -> Self
pub fn with_config(config: ComposeConfig) -> Self
Create with a specific configuration
Sourcepub async fn run(&self) -> Result<ComposeOutput>
pub async fn run(&self) -> Result<ComposeOutput>
Trait Implementations§
Source§impl Clone for ComposeRestartCommand
impl Clone for ComposeRestartCommand
Source§fn clone(&self) -> ComposeRestartCommand
fn clone(&self) -> ComposeRestartCommand
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 ComposeCommand for ComposeRestartCommand
impl ComposeCommand for ComposeRestartCommand
Source§type Output = ComposeOutput
type Output = ComposeOutput
The output type this command produces
Source§fn subcommand(&self) -> &'static str
fn subcommand(&self) -> &'static str
Get the compose subcommand name (e.g., “up”, “down”, “ps”)
Source§fn build_args(&self) -> Vec<String>
fn build_args(&self) -> Vec<String>
Build command-specific 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,
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
Source§fn config(&self) -> &ComposeConfig
fn config(&self) -> &ComposeConfig
Get the compose configuration
Source§impl Debug for ComposeRestartCommand
impl Debug for ComposeRestartCommand
Source§impl Default for ComposeRestartCommand
impl Default for ComposeRestartCommand
Source§fn default() -> ComposeRestartCommand
fn default() -> ComposeRestartCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposeRestartCommand
impl RefUnwindSafe for ComposeRestartCommand
impl Send for ComposeRestartCommand
impl Sync for ComposeRestartCommand
impl Unpin for ComposeRestartCommand
impl UnwindSafe for ComposeRestartCommand
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