pub enum Signal {
Success(String),
CtrlC,
CtrlD,
CtrlL,
}
Expand description
Valid ways how Reedline::read_line()
can return
Variants
Success(String)
Entry succeeded with the provided content
CtrlC
Entry was aborted with Ctrl+C
CtrlD
Abort with Ctrl+D
signalling EOF
or abort of a whole interactive session
CtrlL
Signal to clear the current screen. Buffer content remains untouched.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnwindSafe for Signal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more