pub enum LineEditorResult {
Success(String),
Interrupted,
EndTerminalSession,
}Expand description
A Result can return fromLineEditor::read_line()
Variants§
Success(String)
Entry succeeded with the provided content
Interrupted
Interrupt current editing
EndTerminalSession
End terminal session
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineEditorResult
impl RefUnwindSafe for LineEditorResult
impl Send for LineEditorResult
impl Sync for LineEditorResult
impl Unpin for LineEditorResult
impl UnwindSafe for LineEditorResult
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