pub enum Processing {
NoMoreAttempts,
Io {
source: Error,
},
Eof,
Timeout {
source: TimeoutError,
},
}
Expand description
All possible errors of the ask
method.
Variants§
NoMoreAttempts
The user has no more attempts to answer a question.
Related to the method attempts
.
Io
There was an I/O error while asking.
Eof
The reader got to the end of file (EOF) character. In other words, there was no input.
§Remarks
This is particularly useful when reading from a file.
Timeout
The time to answer a question has passed.
Related to the method timeout
.
Fields
§
source: TimeoutError
Trait Implementations§
Source§impl Debug for Processing
impl Debug for Processing
Source§impl Display for Processing
impl Display for Processing
Source§impl Error for Processing
impl Error for Processing
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for Processing
impl From<Error> for Processing
Source§impl From<TimeoutError> for Processing
impl From<TimeoutError> for Processing
Source§fn from(source: TimeoutError) -> Self
fn from(source: TimeoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Processing
impl !RefUnwindSafe for Processing
impl Send for Processing
impl Sync for Processing
impl Unpin for Processing
impl !UnwindSafe for Processing
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