pub struct ActionPrompt<AE: ActionEnum> { /* private fields */ }Expand description
Prompt the user for an action from a static list.
Implementations§
Source§impl<AE: ActionEnum> ActionPrompt<AE>
impl<AE: ActionEnum> ActionPrompt<AE>
Sourcepub fn with_default(self, action: AE) -> Self
pub fn with_default(self, action: AE) -> Self
Sourcepub fn run_cancellable(self) -> Result<Option<AE>, AskError>
pub fn run_cancellable(self) -> Result<Option<AE>, AskError>
Run the prompt and allow cancellation via the escape key.
Auto Trait Implementations§
impl<AE> Freeze for ActionPrompt<AE>where
AE: Freeze,
impl<AE> RefUnwindSafe for ActionPrompt<AE>where
AE: RefUnwindSafe,
impl<AE> Send for ActionPrompt<AE>where
AE: Send,
impl<AE> Sync for ActionPrompt<AE>where
AE: Sync,
impl<AE> Unpin for ActionPrompt<AE>where
AE: Unpin,
impl<AE> UnwindSafe for ActionPrompt<AE>where
AE: UnwindSafe,
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