pub trait RecordInput {
    // Required methods
    fn terminal_kind(&self) -> TerminalKind;
    fn next_events(&mut self) -> Result<Vec<Event>, RecordError>;
    fn edit_commit_message(
        &mut self,
        message: &str,
    ) -> Result<String, RecordError>;
}Expand description
Get user input.
Required Methods§
Sourcefn terminal_kind(&self) -> TerminalKind
 
fn terminal_kind(&self) -> TerminalKind
Return the kind of terminal to use.
Sourcefn 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.
Sourcefn 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.
This function will only be invoked if one of the provided Commits had
a non-None commit message.