Struct jortestkit::console::UserInteraction
source · pub struct UserInteraction {
console_writer: ConsoleWriter,
exit_phrase: String,
command_prefix: String,
}
Fields§
§console_writer: ConsoleWriter
§exit_phrase: String
§command_prefix: String
Implementations§
source§impl UserInteraction
impl UserInteraction
pub fn new( app_name: String, title: String, prompt: String, exit_phrase: String, command_prefix: String, description: Vec<String> ) -> Self
pub fn interact<E: InteractiveCommandExec>( &self, executor: &mut E ) -> Result<(), InteractiveCommandError>
fn read_line(&self) -> Result<Vec<String>, InteractiveCommandError>
fn is_exit_command(&self, tokens: &[String]) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for UserInteraction
impl Send for UserInteraction
impl Sync for UserInteraction
impl Unpin for UserInteraction
impl UnwindSafe for UserInteraction
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