Struct scm_record::helpers::TestingInput
source · pub struct TestingInput {
pub width: usize,
pub height: usize,
pub events: Box<dyn Iterator<Item = Event>>,
pub commit_messages: VecDeque<String>,
}Expand description
Reads events from the provided sequence of events.
Fields§
§width: usizeThe width of the virtual terminal in columns.
height: usizeThe height of the virtual terminal in columns.
events: Box<dyn Iterator<Item = Event>>The sequence of events to emit.
commit_messages: VecDeque<String>Commit messages to use when the commit editor is opened.
Implementations§
source§impl TestingInput
impl TestingInput
Trait Implementations§
source§impl RecordInput for TestingInput
impl RecordInput for TestingInput
source§fn terminal_kind(&self) -> TerminalKind
fn terminal_kind(&self) -> TerminalKind
Return the kind of terminal to use.
source§fn next_events(&mut self) -> Result<Vec<Event>, RecordError>
fn next_events(&mut self) -> Result<Vec<Event>, RecordError>
Get all available user events. This should block until there is at least
one available event.
source§fn edit_commit_message(&mut self, _message: &str) -> Result<String, RecordError>
fn edit_commit_message(&mut self, _message: &str) -> Result<String, RecordError>
Open a commit editor and interactively edit the given message. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TestingInput
impl !Send for TestingInput
impl !Sync for TestingInput
impl Unpin for TestingInput
impl !UnwindSafe for TestingInput
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