pub struct Prompter { /* private fields */ }Expand description
See: https://asimov-specs.github.io/program-patterns/#prompter
Implementations§
Source§impl Prompter
impl Prompter
pub fn new( program: impl AsRef<OsStr>, input: Prompt, output: TextOutput, options: PrompterOptions, ) -> Self
pub async fn execute(&mut self) -> PrompterResult
Trait Implementations§
impl Prompter<String, ExecutorError> for Prompter
Auto Trait Implementations§
impl Freeze for Prompter
impl !RefUnwindSafe for Prompter
impl Send for Prompter
impl Sync for Prompter
impl Unpin for Prompter
impl !UnwindSafe for Prompter
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