pub enum ReadResult {
Eof,
Input(String),
Signal(Signal),
}
Expand description
Returned from read_line
to indicate user input
Variants§
Eof
User issued end-of-file
Input(String)
User input received
Signal(Signal)
Reported signal was received
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadResult
impl RefUnwindSafe for ReadResult
impl Send for ReadResult
impl Sync for ReadResult
impl Unpin for ReadResult
impl UnwindSafe for ReadResult
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