Struct podman_api::opts::ExecCreateOptsBuilder
source · [−]pub struct ExecCreateOptsBuilder { /* private fields */ }
Expand description
A builder struct for ExecCreateOpts.
Implementations
sourceimpl ExecCreateOptsBuilder
impl ExecCreateOptsBuilder
sourcepub fn build(self) -> ExecCreateOpts
pub fn build(self) -> ExecCreateOpts
Finish building ExecCreateOpts.
sourceimpl 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<I, S>(self, command: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
pub fn command<I, S>(self, command: I) -> Self where
I: IntoIterator<Item = S>,
S: AsRef<str> + Serialize,
Command to run, as a string or array of strings.
sourcepub fn detach_keys(self, detach_keys: impl AsRef<str> + Serialize) -> Self
pub fn detach_keys(self, detach_keys: impl AsRef<str> + 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 where
K: AsRef<str>,
V: AsRef<str>,
pub fn env<K, V>(self, vars: impl IntoIterator<Item = (K, V)>) -> Self where
K: AsRef<str>,
V: AsRef<str>,
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 AsRef<str> + Serialize) -> Self
pub fn working_dir(self, working_dir: impl AsRef<str> + Serialize) -> Self
The working directory for the exec process inside the container.
Trait Implementations
sourceimpl Clone for ExecCreateOptsBuilder
impl Clone for ExecCreateOptsBuilder
sourcefn clone(&self) -> ExecCreateOptsBuilder
fn clone(&self) -> ExecCreateOptsBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ExecCreateOptsBuilder
impl Debug for ExecCreateOptsBuilder
sourceimpl Default for ExecCreateOptsBuilder
impl Default for ExecCreateOptsBuilder
sourcefn default() -> ExecCreateOptsBuilder
fn default() -> ExecCreateOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ExecCreateOptsBuilder
impl Send for ExecCreateOptsBuilder
impl Sync for ExecCreateOptsBuilder
impl Unpin for ExecCreateOptsBuilder
impl UnwindSafe for ExecCreateOptsBuilder
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
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