pub struct LocalShellBackend { /* private fields */ }Expand description
Local shell backend: each command spawns a sh -c child process, with state managed
in the terminals table until release.
Implementations§
Trait Implementations§
Source§impl Default for LocalShellBackend
impl Default for LocalShellBackend
Source§impl ShellBackend for LocalShellBackend
impl ShellBackend for LocalShellBackend
Source§fn create(
&self,
command: String,
cwd: PathBuf,
) -> BoxFuture<'_, Result<TerminalId, ShellError>>
fn create( &self, command: String, cwd: PathBuf, ) -> BoxFuture<'_, Result<TerminalId, ShellError>>
Creates a terminal and starts the command. Read more
Source§fn output(
&self,
id: &TerminalId,
) -> BoxFuture<'_, Result<ShellOutput, ShellError>>
fn output( &self, id: &TerminalId, ) -> BoxFuture<'_, Result<ShellOutput, ShellError>>
Take a snapshot of the terminal’s current accumulated output. Read more
Source§fn wait_for_exit(
&self,
id: &TerminalId,
) -> BoxFuture<'_, Result<TerminalExitStatus, ShellError>>
fn wait_for_exit( &self, id: &TerminalId, ) -> BoxFuture<'_, Result<TerminalExitStatus, ShellError>>
Blocks until the terminal process exits.
Source§fn release(&self, id: &TerminalId) -> BoxFuture<'_, Result<(), ShellError>>
fn release(&self, id: &TerminalId) -> BoxFuture<'_, Result<(), ShellError>>
Release terminal resources (close file descriptors / remove internal bookkeeping). Read more
Source§fn kill(&self, id: &TerminalId) -> BoxFuture<'_, Result<(), ShellError>>
fn kill(&self, id: &TerminalId) -> BoxFuture<'_, Result<(), ShellError>>
Forcefully kill the terminal process. Does not release resources — subsequent
calls to
ShellBackend::output / ShellBackend::wait_for_exit are still
valid; releasing is handled by ShellBackend::release.Auto Trait Implementations§
impl !Freeze for LocalShellBackend
impl RefUnwindSafe for LocalShellBackend
impl Send for LocalShellBackend
impl Sync for LocalShellBackend
impl Unpin for LocalShellBackend
impl UnsafeUnpin for LocalShellBackend
impl UnwindSafe for LocalShellBackend
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