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 Freeze for ReadlineEvent
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