pub struct ExecBuilder<'a> { /* private fields */ }
Expand description
A builder for launching a command in VTL2.
Implementations§
Source§impl ExecBuilder<'_>
impl ExecBuilder<'_>
Sourcepub fn args<T: AsRef<str>>(
&mut self,
args: impl IntoIterator<Item = T>,
) -> &mut Self
pub fn args<T: AsRef<str>>( &mut self, args: impl IntoIterator<Item = T>, ) -> &mut Self
Adds args
to the argument list.
Sourcepub fn stdin(&mut self, stdin: bool) -> &mut Self
pub fn stdin(&mut self, stdin: bool) -> &mut Self
Specifies whether a stdin socket should be opened.
Sourcepub fn stdout(&mut self, stdout: bool) -> &mut Self
pub fn stdout(&mut self, stdout: bool) -> &mut Self
Specifies whether a stdout socket should be opened.
Sourcepub fn stderr(&mut self, stderr: bool) -> &mut Self
pub fn stderr(&mut self, stderr: bool) -> &mut Self
Specifies whether a stderr socket should be opened.
Sourcepub fn combine_stderr(&mut self, combine_stderr: bool) -> &mut Self
pub fn combine_stderr(&mut self, combine_stderr: bool) -> &mut Self
Specifies whether the processes’s stdout and stderr should be combined into a single stream (the stdout socket).
Sourcepub fn raw_socket_io(&mut self, raw_socket_io: bool) -> &mut Self
pub fn raw_socket_io(&mut self, raw_socket_io: bool) -> &mut Self
Specifies whether the vsock sockets used for stdio should be passed directly to the launched process instead of going through relays.
Sourcepub fn env_remove(&mut self, name: impl AsRef<str>) -> &mut Self
pub fn env_remove(&mut self, name: impl AsRef<str>) -> &mut Self
Removes an environment variable.
Auto Trait Implementations§
impl<'a> Freeze for ExecBuilder<'a>
impl<'a> !RefUnwindSafe for ExecBuilder<'a>
impl<'a> Send for ExecBuilder<'a>
impl<'a> Sync for ExecBuilder<'a>
impl<'a> Unpin for ExecBuilder<'a>
impl<'a> !UnwindSafe for ExecBuilder<'a>
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