Enum rustyline_async::ReadlineEvent
source · pub enum ReadlineEvent {
Line(String),
Eof,
Interrupted,
}
Expand description
Events emitted by Readline::readline()
Variants§
Line(String)
The user entered a line of text
Eof
The user pressed Ctrl-D
Interrupted
The user pressed Ctrl-C
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ReadlineEvent
impl Send for ReadlineEvent
impl Sync for ReadlineEvent
impl Unpin for ReadlineEvent
impl UnwindSafe for ReadlineEvent
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