Struct docker_api::api::exec::ExecContainerOptsBuilder
source · [−]pub struct ExecContainerOptsBuilder { /* private fields */ }
Expand description
A builder struct for ExecContainerOpts.
Implementations
sourceimpl ExecContainerOptsBuilder
impl ExecContainerOptsBuilder
sourcepub fn build(&self) -> ExecContainerOpts
pub fn build(&self) -> ExecContainerOpts
Finish building ExecContainerOpts.
sourceimpl ExecContainerOptsBuilder
impl ExecContainerOptsBuilder
sourcepub fn cmd<C, S>(self, cmd: C) -> Self where
C: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn cmd<C, S>(self, cmd: C) -> Self where
C: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
Command to run, as an array of strings.
sourcepub fn env<E, S>(self, env: E) -> Self where
E: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn env<E, S>(self, env: E) -> Self where
E: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
A list of environment variables in the form ‘VAR=value’.
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 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 detach_keys<K>(self, detach_keys: K) -> Self where
K: AsRef<str> + Serialize,
pub fn detach_keys<K>(self, detach_keys: K) -> Self where
K: AsRef<str> + Serialize,
Override the key sequence for detaching a container. Format is a single
character [a-Z] or ctrl-
sourcepub fn privileged(self, privileged: bool) -> Self
pub fn privileged(self, privileged: bool) -> Self
Runs the exec process with extended privileges. (Default: false
)
sourcepub fn user<U>(self, user: U) -> Self where
U: AsRef<str> + Serialize,
pub fn user<U>(self, user: U) -> Self where
U: AsRef<str> + Serialize,
The user, and optionally, group to run the exec process inside the container. Format is one of: user, user:group, uid, or uid:gid.
sourcepub fn working_dir<D>(self, working_dir: D) -> Self where
D: AsRef<str> + Serialize,
pub fn working_dir<D>(self, working_dir: D) -> Self where
D: AsRef<str> + Serialize,
The working directory for the exec process inside the container.
Trait Implementations
sourceimpl Debug for ExecContainerOptsBuilder
impl Debug for ExecContainerOptsBuilder
sourceimpl Default for ExecContainerOptsBuilder
impl Default for ExecContainerOptsBuilder
sourcefn default() -> ExecContainerOptsBuilder
fn default() -> ExecContainerOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ExecContainerOptsBuilder
impl Send for ExecContainerOptsBuilder
impl Sync for ExecContainerOptsBuilder
impl Unpin for ExecContainerOptsBuilder
impl UnwindSafe for ExecContainerOptsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more