pub struct Quarantine {
pub backup_path: PathBuf,
pub removed_byte_offsets: Vec<u64>,
}Expand description
Outcome of a quarantine_corrupt_lines call that removed at least one
poison line. backup_path is the renamed copy of the original log (kept
verbatim for operator forensics / hand-repair); removed_byte_offsets
are the start offsets, in that original, of every newline-terminated line
that failed to parse as an Event and was excised from the recovered
events.jsonl.
Fields§
§backup_path: PathBufPath to the timestamped .bak holding the original poisoned log.
removed_byte_offsets: Vec<u64>Byte offsets (in the original log) of every excised corrupt line.
Trait Implementations§
Source§impl Clone for Quarantine
impl Clone for Quarantine
Source§fn clone(&self) -> Quarantine
fn clone(&self) -> Quarantine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Quarantine
impl Debug for Quarantine
Auto Trait Implementations§
impl Freeze for Quarantine
impl RefUnwindSafe for Quarantine
impl Send for Quarantine
impl Sync for Quarantine
impl Unpin for Quarantine
impl UnsafeUnpin for Quarantine
impl UnwindSafe for Quarantine
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