pub struct ActionRunner {
pub events: Option<TestEvents<IntoIter<KeyEvent>>>,
}
Expand description
Runs Action
s and keeps track of variables in varbag
.
Fields§
§events: Option<TestEvents<IntoIter<KeyEvent>>>
synthetic events to be injected to prompts, useful in tests
Implementations§
Source§impl ActionRunner
impl ActionRunner
Sourcepub fn with_events(events: Vec<KeyEvent>) -> Self
pub fn with_events(events: Vec<KeyEvent>) -> Self
create with actions. does not run them yet. create with actions and a set of synthetic events for testing
Trait Implementations§
Source§impl Default for ActionRunner
impl Default for ActionRunner
Source§fn default() -> ActionRunner
fn default() -> ActionRunner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ActionRunner
impl RefUnwindSafe for ActionRunner
impl Send for ActionRunner
impl Sync for ActionRunner
impl Unpin for ActionRunner
impl UnwindSafe for ActionRunner
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