pub struct ShellBuilder { /* private fields */ }Expand description
An openShell mutation being assembled — see Client::shell.
Implementations§
Source§impl ShellBuilder
impl ShellBuilder
Sourcepub fn command<I, S>(self, command: I) -> Self
pub fn command<I, S>(self, command: I) -> Self
Run this command instead of the machine’s login shell.
Sourcepub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn env(self, key: impl Into<String>, value: impl Into<String>) -> Self
Set a session environment variable.
Sourcepub fn open(self) -> Result<ShellSession>
pub fn open(self) -> Result<ShellSession>
Open the session and start streaming its output.
Auto Trait Implementations§
impl Freeze for ShellBuilder
impl RefUnwindSafe for ShellBuilder
impl Send for ShellBuilder
impl Sync for ShellBuilder
impl Unpin for ShellBuilder
impl UnsafeUnpin for ShellBuilder
impl UnwindSafe for ShellBuilder
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