pub struct LogCorruption {
pub line_number: usize,
pub byte_offset: u64,
pub reason: String,
pub excerpt: String,
}Expand description
Where durable corruption was found, and what is wrong with it.
Carries a location so an operator can find the damage, and an excerpt so they can recognise it, without the error having to quote a whole record.
Fields§
§line_number: usize1-based line number in the durable log.
byte_offset: u64Byte offset of the start of the record.
reason: StringWhat is wrong, in terms of the record rather than the parser.
excerpt: StringThe beginning of the record, truncated.
Trait Implementations§
Source§impl Clone for LogCorruption
impl Clone for LogCorruption
Source§impl Debug for LogCorruption
impl Debug for LogCorruption
Source§impl Display for LogCorruption
impl Display for LogCorruption
impl Eq for LogCorruption
Source§impl PartialEq for LogCorruption
impl PartialEq for LogCorruption
impl StructuralPartialEq for LogCorruption
Auto Trait Implementations§
impl Freeze for LogCorruption
impl RefUnwindSafe for LogCorruption
impl Send for LogCorruption
impl Sync for LogCorruption
impl Unpin for LogCorruption
impl UnsafeUnpin for LogCorruption
impl UnwindSafe for LogCorruption
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