pub struct Shell { /* private fields */ }Expand description
The debug shell processor.
Implementations§
Source§impl Shell
impl Shell
Sourcepub fn new(config: ShellConfig) -> Self
pub fn new(config: ShellConfig) -> Self
Create a new shell with the given configuration.
Sourcepub fn default_shell() -> Self
pub fn default_shell() -> Self
Create a shell with default configuration.
Sourcepub fn execute_line<B: ShellBackend>(
&mut self,
line: &str,
backend: &mut B,
) -> String
pub fn execute_line<B: ShellBackend>( &mut self, line: &str, backend: &mut B, ) -> String
Execute a command line and return the output.
Sourcepub fn clear_history(&mut self)
pub fn clear_history(&mut self)
Clear command history.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Shell
impl RefUnwindSafe for Shell
impl Send for Shell
impl Sync for Shell
impl Unpin for Shell
impl UnsafeUnpin for Shell
impl UnwindSafe for Shell
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