pub enum ReadError {
InvalidTimeLine(String),
InvalidUserLine(String),
InvalidStatsLine(String),
IncompleteSql,
IncompleteLog,
}
Expand description
Error covering problems reading or parsing a log
Variants§
InvalidTimeLine(String)
problem found where a Time:… line is expected
InvalidUserLine(String)
problem found where a User:… line is expected
InvalidStatsLine(String)
problem found where a Query_time:… line is expected
IncompleteSql
problem found at end of file with an incomplete SQL statement
IncompleteLog
problem found at end of file somewhere in the middle of an entry
Trait Implementations§
Source§impl Error for ReadError
impl Error for ReadError
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 Freeze for ReadError
impl RefUnwindSafe for ReadError
impl Send for ReadError
impl Sync for ReadError
impl Unpin for ReadError
impl UnwindSafe for ReadError
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