pub struct Shell<'a, T: for<'enc> Utf8Encoding<'enc>> { /* private fields */ }
Expand description
A stateful shell abstraction for interacting with the guest.
This is modeled after xshell::Shell
.
Implementations§
Source§impl<T> Shell<'_, T>where
for<'enc> T: Utf8Encoding<'enc>,
impl<T> Shell<'_, T>where
for<'enc> T: Utf8Encoding<'enc>,
Sourcepub fn change_dir(&mut self, path: impl AsRef<Utf8Path<T>>)
pub fn change_dir(&mut self, path: impl AsRef<Utf8Path<T>>)
Change the effective working directory of the shell.
Other paths will be resolved relative to this directory.
Auto Trait Implementations§
impl<'a, T> Freeze for Shell<'a, T>
impl<'a, T> !RefUnwindSafe for Shell<'a, T>
impl<'a, T> Send for Shell<'a, T>where
T: Send,
impl<'a, T> Sync for Shell<'a, T>where
T: Sync,
impl<'a, T> Unpin for Shell<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for Shell<'a, T>
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