#[non_exhaustive]pub struct DamagedRange {
pub unreadable_lines: u64,
pub missing_records: u64,
pub readable_before_at: Option<String>,
pub readable_after_at: String,
pub last_good_turn_id: Option<String>,
}Expand description
damagedRange: what one damaged range of the session log cost. The reader
finds the range in the log bytes; no log record is written for it, so every
member is derived from the readable records around it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.unreadable_lines: u64Physical log lines in the range that are not a readable record.
missing_records: u64Records the log proves missing (session-stream sequence numbers no readable record or unreadable line accounts for).
readable_before_at: Option<String>RFC3339 recordedAt of the last readable record before the range;
absent when the range starts the log.
readable_after_at: StringRFC3339 recordedAt of the first readable record after the range;
always present, since a range is read past only when readable records
follow it.
last_good_turn_id: Option<String>The last finished turn before the first damaged range, when one exists:
the safe session/fork cut.
Trait Implementations§
Source§impl Clone for DamagedRange
impl Clone for DamagedRange
Source§impl Debug for DamagedRange
impl Debug for DamagedRange
Source§impl<'de> Deserialize<'de> for DamagedRange
impl<'de> Deserialize<'de> for DamagedRange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DamagedRange
Source§impl PartialEq for DamagedRange
impl PartialEq for DamagedRange
Source§impl Serialize for DamagedRange
impl Serialize for DamagedRange
impl StructuralPartialEq for DamagedRange
Auto Trait Implementations§
impl Forget for DamagedRange
impl Freeze for DamagedRange
impl Move for DamagedRange
impl RefUnwindSafe for DamagedRange
impl Send for DamagedRange
impl Sync for DamagedRange
impl Unpin for DamagedRange
impl UnsafeUnpin for DamagedRange
impl UnwindSafe for DamagedRange
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