pub struct WaitForInteraction;Expand description
A command that waits for user interaction before executing subsequent commands.
§Examples
use clp::{crossterm, slide};
use crossterm::style::Print;
slide!(
Print("This will appear immediately.\n"),
WaitForInteraction, // <- This command is used within the macro, so it does not need to be binded again
Print("This will appear after an interaction."),
)
.expect("one message should print, then the other should print after an interaction");§Notes
Commands must be executed/queued for execution
(which TypewriterPrint is when in slide)
otherwise they do nothing.
Trait Implementations§
Source§impl Clone for WaitForInteraction
impl Clone for WaitForInteraction
Source§fn clone(&self) -> WaitForInteraction
fn clone(&self) -> WaitForInteraction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Command for WaitForInteraction
impl Command for WaitForInteraction
Source§impl Debug for WaitForInteraction
impl Debug for WaitForInteraction
Source§impl PartialEq for WaitForInteraction
impl PartialEq for WaitForInteraction
impl Copy for WaitForInteraction
impl Eq for WaitForInteraction
impl StructuralPartialEq for WaitForInteraction
Auto Trait Implementations§
impl Freeze for WaitForInteraction
impl RefUnwindSafe for WaitForInteraction
impl Send for WaitForInteraction
impl Sync for WaitForInteraction
impl Unpin for WaitForInteraction
impl UnwindSafe for WaitForInteraction
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