pub enum ReadError<E> {
IOError(Error),
EOF,
EOL,
UnexpectedChar(String, &'static str),
FromStrError(E, String, &'static str),
}
Expand description
Error during using ReadInto or ReadOneFrom.
This error is usually caused by std::io::Error or std::str::FromStr::Err.
Variants§
IOError(Error)
Error during reading from input.
EOF
Unexpected end of file.
EOL
Unexpected end of line.
UnexpectedChar(String, &'static str)
Error during matching a pattern.
FromStrError(E, String, &'static str)
Error during converting a string to a value, usually caused by calling std::str::FromStr::from_str.
Trait Implementations§
Source§impl<E> Error for ReadError<E>where
E: Error,
impl<E> Error for ReadError<E>where
E: Error,
1.30.0 · 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()
Auto Trait Implementations§
impl<E> Freeze for ReadError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for ReadError<E>
impl<E> Send for ReadError<E>where
E: Send,
impl<E> Sync for ReadError<E>where
E: Sync,
impl<E> Unpin for ReadError<E>where
E: Unpin,
impl<E> !UnwindSafe for ReadError<E>
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