pub struct ComposeAttachCommand {
pub config: ComposeConfig,
pub service: String,
pub detach_keys: Option<String>,
pub index: Option<u32>,
pub no_stdin: bool,
pub sig_proxy: bool,
}
Expand description
Docker Compose attach command
Attach to a running container’s output.
Fields§
§config: ComposeConfig
Base configuration
service: String
Service to attach to
detach_keys: Option<String>
Detach keys sequence
index: Option<u32>
Container index if service has multiple instances
no_stdin: bool
Don’t stream STDIN
sig_proxy: bool
Use a pseudo-TTY
Implementations§
Source§impl ComposeAttachCommand
impl ComposeAttachCommand
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 detach_keys(self, keys: impl Into<String>) -> Self
pub fn detach_keys(self, keys: impl Into<String>) -> Self
Set detach keys
Sourcepub fn no_sig_proxy(self) -> Self
pub fn no_sig_proxy(self) -> Self
Disable signal proxy
Trait Implementations§
Source§impl Clone for ComposeAttachCommand
impl Clone for ComposeAttachCommand
Source§fn clone(&self) -> ComposeAttachCommand
fn clone(&self) -> ComposeAttachCommand
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 ComposeAttachCommand
impl ComposeCommandV2 for ComposeAttachCommand
Source§type Output = AttachResult
type Output = AttachResult
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 ComposeAttachCommand
impl Debug for ComposeAttachCommand
Source§impl Default for ComposeAttachCommand
impl Default for ComposeAttachCommand
Source§fn default() -> ComposeAttachCommand
fn default() -> ComposeAttachCommand
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComposeAttachCommand
impl RefUnwindSafe for ComposeAttachCommand
impl Send for ComposeAttachCommand
impl Sync for ComposeAttachCommand
impl Unpin for ComposeAttachCommand
impl UnwindSafe for ComposeAttachCommand
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