pub enum ReadError {
Io(Error),
CorruptLog,
NoSuchSegment,
}
Expand description
Error enum for commit log read operation.
Variants§
Io(Error)
Underlying IO error encountered by reading from the log
CorruptLog
A segment in the log is corrupt, or the index itself is corrupt
NoSuchSegment
Offset supplied was not invalid.
Trait Implementations§
Source§impl Error for ReadError
impl Error for ReadError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<MessageError> for ReadError
impl From<MessageError> for ReadError
Source§fn from(e: MessageError) -> ReadError
fn from(e: MessageError) -> ReadError
Converts to this type from the input type.
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