pub struct Shell { /* private fields */ }
Implementations§
source§impl Shell
impl Shell
pub fn new() -> Self
pub fn set_welcome(&mut self, message: &str) -> &mut Self
pub fn set_prompt(&mut self, p: Prompt) -> &mut Self
pub fn set_prompt_header(&mut self, ph: PromptHeader) -> &mut Self
pub fn register_default_commands(&mut self) -> &mut Self
pub fn register_command(&mut self, definition: CommandDefinition) -> &mut Self
pub fn start(&self)
pub fn help(&self)
pub fn history(&self, len: i32)
pub fn exit(&self)
pub fn read_and_run(&mut self) -> Box<dyn CommandStatus>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Shell
impl Send for Shell
impl Sync for Shell
impl Unpin 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