pub struct WaitFor(pub Duration);
Expand description
A command that waits for the specified duration before executing subsequent commands.
§Examples
use clp::{crossterm, slide, WaitFor};
use crossterm::style::Print;
use std::time::Duration;
slide!(
Print("This will appear immediately.\n"),
WaitFor(Duration::from_secs(5)),
Print("This will appear after 5 seconds."),
)
.unwrap();
§Notes
Commands must be executed/queued for execution
(which TypewriterPrint
is when in slide
)
otherwise they do nothing.
Tuple Fields§
§0: Duration
Trait Implementations§
impl Copy for WaitFor
impl Eq for WaitFor
impl StructuralPartialEq for WaitFor
Auto Trait Implementations§
impl Freeze for WaitFor
impl RefUnwindSafe for WaitFor
impl Send for WaitFor
impl Sync for WaitFor
impl Unpin for WaitFor
impl UnwindSafe for WaitFor
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