pub struct ExecConfig {
pub container_id: ContainerId,
pub cmd: Vec<String>,
pub env: Vec<String>,
pub working_dir: Option<String>,
pub attach_stdin: bool,
pub attach_stdout: bool,
pub attach_stderr: bool,
pub tty: bool,
pub user: Option<String>,
pub privileged: bool,
}Expand description
Exec instance configuration.
Fields§
§container_id: ContainerIdContainer ID.
cmd: Vec<String>Command to run.
env: Vec<String>Environment variables.
working_dir: Option<String>Working directory.
attach_stdin: boolAttach stdin.
attach_stdout: boolAttach stdout.
attach_stderr: boolAttach stderr.
tty: boolAllocate a TTY.
user: Option<String>Run as user.
privileged: boolPrivileged mode.
Trait Implementations§
Source§impl Clone for ExecConfig
impl Clone for ExecConfig
Source§fn clone(&self) -> ExecConfig
fn clone(&self) -> ExecConfig
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 Debug for ExecConfig
impl Debug for ExecConfig
Auto Trait Implementations§
impl Freeze for ExecConfig
impl RefUnwindSafe for ExecConfig
impl Send for ExecConfig
impl Sync for ExecConfig
impl Unpin for ExecConfig
impl UnsafeUnpin for ExecConfig
impl UnwindSafe for ExecConfig
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