pub struct ExecCreateOptsBuilder { /* private fields */ }
Expand description
A builder struct for ExecCreateOpts.
Implementations§
Source§impl ExecCreateOptsBuilder
impl ExecCreateOptsBuilder
Sourcepub fn build(self) -> ExecCreateOpts
pub fn build(self) -> ExecCreateOpts
Finish building ExecCreateOpts.
Source§impl ExecCreateOptsBuilder
impl ExecCreateOptsBuilder
Sourcepub fn attach_stderr(self, attach_stderr: bool) -> Self
pub fn attach_stderr(self, attach_stderr: bool) -> Self
Attach to stderr of the exec command
Sourcepub fn attach_stdin(self, attach_stdin: bool) -> Self
pub fn attach_stdin(self, attach_stdin: bool) -> Self
Attach to stdin of the exec command
Sourcepub fn attach_stdout(self, attach_stdout: bool) -> Self
pub fn attach_stdout(self, attach_stdout: bool) -> Self
Attach to stdout of the exec command
Sourcepub fn command<S>(self, command: impl IntoIterator<Item = S>) -> Selfwhere
S: Serialize,
pub fn command<S>(self, command: impl IntoIterator<Item = S>) -> Selfwhere
S: Serialize,
Command to run, as a string or array of strings.
Sourcepub fn detach_keys(self, detach_keys: impl Serialize) -> Self
pub fn detach_keys(self, detach_keys: impl Serialize) -> Self
Override the key sequence for detaching a container. Format is a single character [a-Z] or ctrl- where is one of: a-z, @, ^, [, , or _.
Sourcepub fn env<K, V>(self, vars: impl IntoIterator<Item = (K, V)>) -> Self
pub fn env<K, V>(self, vars: impl IntoIterator<Item = (K, V)>) -> Self
A list of environment variables to use for the command execution.
Sourcepub fn privileged(self, privileged: bool) -> Self
pub fn privileged(self, privileged: bool) -> Self
Runs the exec process with extended privileges
Sourcepub fn user(self, user: UserOpt) -> Self
pub fn user(self, user: UserOpt) -> Self
The user, and optionally, group to run the exec process inside the container.
Sourcepub fn working_dir(self, working_dir: impl Serialize) -> Self
pub fn working_dir(self, working_dir: impl Serialize) -> Self
The working directory for the exec process inside the container.
Trait Implementations§
Source§impl Clone for ExecCreateOptsBuilder
impl Clone for ExecCreateOptsBuilder
Source§fn clone(&self) -> ExecCreateOptsBuilder
fn clone(&self) -> ExecCreateOptsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExecCreateOptsBuilder
impl Debug for ExecCreateOptsBuilder
Source§impl Default for ExecCreateOptsBuilder
impl Default for ExecCreateOptsBuilder
Source§fn default() -> ExecCreateOptsBuilder
fn default() -> ExecCreateOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExecCreateOptsBuilder
impl RefUnwindSafe for ExecCreateOptsBuilder
impl Send for ExecCreateOptsBuilder
impl Sync for ExecCreateOptsBuilder
impl Unpin for ExecCreateOptsBuilder
impl UnwindSafe for ExecCreateOptsBuilder
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